upload page: fixed bug with replace and child input