Added file upload function to form