Forums

Save the attached files in different folders, depending on the form

innova 07 May, 2021
Hello,
I've created three different forms for my website (wordpress).
Users use one form or the other to send us different images that we need to catalogue. The problem is that all the files are stored in the same folder so we spend a lot of time just trying to know if the image comes from on form or another.

Is it possible to save the files in different directories? depending on the form they come from?

if is not possible to save them in different folders, could it be possible to rename the files adding an id to the file name?

Thank you.
GreyHead 07 May, 2021
Hi innova,

In the Joomla version the Uploads Action has settings for both the folder and the file name. The simplest fix is probably to change the Upload Directory Path to {path:front}/uploads/form_alias

Bob
innova 07 May, 2021
Hi Bob,

I'm using Wordpress so I suppose I can't use your solution. Is there a similar way for Wordpress?
Or could I rename the submitted files automatically adding an id or the form name?

Thank you.
GreyHead 07 May, 2021
Hi innova,

I just installed CFv7 on my WP test site and the settings are exactly the same as far as I can see.

Bob
innova 07 May, 2021
Hi again,

I'm glad to know that, but where exactly should I add that line?
GreyHead 07 May, 2021
Hi innova,

In the Upload action settings. And where I wrote form_alias insert the alias for your form.

Bob
innova 07 May, 2021
Thank you, it works!
You need to login to be able to post a reply.