How to automatically get the upload in FTP without clicking submit button?