Hi,
I am working on a multiform with a file upload option. The multiform works correctly. The problem is that all the fields in the multiform get saved to the database except for the file upload paths. The file upload fields remain blank. But the files themselves are uploaded successfully.
Can someone please help he with this.
Thanks
Hi whiteangel,
I just ran a test and the file name (but not the path) is saved OK for me.
Update: it saves OK if the file upload is on the last step but not if it's on the last but one.
Is the DB Connection on the mother form? Which step is the file upload on?
Bob
Hi,
Just to explain the issue a bit further...
I have a three page multipage form and the upload option is in the second form. The last page in the form basically confirms all the details you have entered previously and then saves everything when you hit confirm.
When the third form spits out the details of what you have entered previously, the file upload field stays empty but all the other data that you entered shows up fine.
I will try the fix you have suggested and let you know of the results.
Thanks
Hi whiteangel,
That's pretty much what I tested yesterday. Hopefully the fix will work for you.
Bob
Hi whiteangel,
After the code hack the file path is being added to the $posted array and I think that this code should work (assuming that reg_file_upload is the name of the file input).
Is it still not working?
Can you try print_r($posted) to what is in the array (or turn on the plug-in debug).
Bob
Hi Bob,
Thanks I really appreciate your help
I have two file upload boxes in my second form. In the third and final confirmation form, only the first file that was selected by the user is shown along with the path that it will be be saved in, but the file from the second upload box does not appear in the confirmation form.
However, in the tables, both files are appearing with complete path and both are being uploaded into the directory.
Hi whiteangel,
If the file uploads are on different steps please check that the file inputs have different names. If they both have the same name e.g. file_0 then the both will be uploaded OK buT the second will over-write the first in the results array.
Bob