Fixes an error with file uploads.