adjust file upload behavior