Added some small tweaks to file upload.