Fixed issue with file uploads