js: manual file upload