Modify for file upload