Page 1 of 1

Name of File uploaded not appears in CSV file

Posted: Wed Aug 31, 2022 2:07 pm
by grundman
Hello Pablo:

I have created a form inside a layout grid with several fields and four different files to be uploaded. I receive the confirmation message correctly but in the CSV file, only the data fields are inserted and there is no information about the files uploaded in this session, although the files were correctly uploaded. Have I forgotten something or is it a bug?

Thanks in advance

Re: Name of File uploaded not appears in CSV file

Posted: Wed Aug 31, 2022 3:00 pm
by Pablo
If multiple files are uploaded then it's not possible to save the file names in CSV, because in that case the format of the submitted data is different.

Re: Name of File uploaded not appears in CSV file

Posted: Wed Aug 31, 2022 3:19 pm
by grundman
Just in case of missunderstood: I am using four File Upload fields in a single form. So in that case how can I know the random name PHP built-in processor adds to the file?

Re: Name of File uploaded not appears in CSV file

Posted: Wed Aug 31, 2022 4:12 pm
by Pablo
To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Re: Name of File uploaded not appears in CSV file

Posted: Wed Aug 31, 2022 4:34 pm
by grundman
Here is the test project

Re: Name of File uploaded not appears in CSV file

Posted: Wed Aug 31, 2022 5:26 pm
by Pablo
Sorry, this functionality is not supported for file upload, because the data is sent as array.

Re: Name of File uploaded not appears in CSV file

Posted: Thu Sep 01, 2022 12:53 pm
by grundman
Thanks Pablo. So my question is now: is there a way to know what is the random seed added to the file name of the file uploaded. In that way a user file uploaded can be identified by this random seed. In other words are there any internal variable which stores this information in the built-in script? It will be very helpful.

Re: Name of File uploaded not appears in CSV file

Posted: Thu Sep 01, 2022 1:28 pm
by Pablo
The file name is random intentionally for security reasons. Otherwise user may be able to upload a script to the server, guess the location and execute the file.
But you can disable this behvaior in the properties of the form.

Also, in the meantime I have released an update which adds support for file upload in CSV.

Re: Name of File uploaded not appears in CSV file

Posted: Thu Sep 01, 2022 2:33 pm
by grundman
As I said in another thread: Many THANKS for solutioned this issue!