Prevent form submission until file uploads are complete