I have a form that has the following workflow.
1. user fills out form, including optionally uploading a file
2. the information gets saved to the database
3. using the ID of the entry, a new folder is created with that ID number
4. the file is uploaded to that folder
5. the user is redirected to another page
I can't seem to place the file uploading process in the right place. Can someone point me in the right direction of the method to use? Should I move the files in the button click action? Page load? onFileUpload?
1. user fills out form, including optionally uploading a file
2. the information gets saved to the database
3. using the ID of the entry, a new folder is created with that ID number
4. the file is uploaded to that folder
5. the user is redirected to another page
I can't seem to place the file uploading process in the right place. Can someone point me in the right direction of the method to use? Should I move the files in the button click action? Page load? onFileUpload?