Cannot complete upload and submit the form