I have a form that has an Upload file control on it, and it allows the user to upload a single file.
This works for saving a record for the first time.
I am building an edit form for the records, that is currently working. It loads all the data from the database and I can then update the values and hit save to have the database updated with the new values.
What I cannot seem to do is update the uploaded file. Essentially I want to have a file upload control on the form that has a title of File Upload (to replace existing file)...so if a new file is selected the database value will be overwritten and the new file will be uploaded to the file server. For some reason I cannot get this to work. When I click submit with a newly selected file, nothing happens (although the rest of the fields on the form save ok. Any thoughts on how to achieve this?
This works for saving a record for the first time.
I am building an edit form for the records, that is currently working. It loads all the data from the database and I can then update the values and hit save to have the database updated with the new values.
What I cannot seem to do is update the uploaded file. Essentially I want to have a file upload control on the form that has a title of File Upload (to replace existing file)...so if a new file is selected the database value will be overwritten and the new file will be uploaded to the file server. For some reason I cannot get this to work. When I click submit with a newly selected file, nothing happens (although the rest of the fields on the form save ok. Any thoughts on how to achieve this?