Fixed empty values for input fields when uploading