Name of File uploaded not appears in CSV file

Issues related to forms.
Post Reply
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Name of File uploaded not appears in CSV file

Post 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
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Name of File uploaded not appears in CSV file

Post 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.
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Name of File uploaded not appears in CSV file

Post 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?
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Name of File uploaded not appears in CSV file

Post 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
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Name of File uploaded not appears in CSV file

Post by grundman »

Here is the test project
Last edited by grundman on Thu Sep 01, 2022 12:52 pm, edited 1 time in total.
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Name of File uploaded not appears in CSV file

Post by Pablo »

Sorry, this functionality is not supported for file upload, because the data is sent as array.
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Name of File uploaded not appears in CSV file

Post 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.
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Name of File uploaded not appears in CSV file

Post 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.
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Name of File uploaded not appears in CSV file

Post by grundman »

As I said in another thread: Many THANKS for solutioned this issue!
Post Reply