Uploading of image files not working - all information entered lost