Resolved errors in file upload