Tweaked file upload functionality