Change when dropbox files are downloaded on server

Few bug fixes
Now Dropbox files are uploaded at the moment they are chosen
Printing script is unified for dropbox and upload file