Fixed defect preventing file uploading