Buy Now
Sign in

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

innova , May 07 2021, 08:02
I
innova 41
May 07 2021, 08:02 #396370
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 65
May 07 2021, 09:50 #396373
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
If you'd like to buy me a coffee or two, thank you very much
I
innova 41
May 07 2021, 09:59 #396375
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 65
May 07 2021, 10:41 #396376
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
If you'd like to buy me a coffee or two, thank you very much
I
innova 41
May 07 2021, 10:51 #396377
Hi again,
I'm glad to know that, but where exactly should I add that line?
GreyHead 65
May 07 2021, 12:16 #396381
Hi innova,
In the Upload action settings. And where I wrote form_alias insert the alias for your form.
Bob
If you'd like to buy me a coffee or two, thank you very much
I
innova 41
May 07 2021, 15:25 #396389
Thank you, it works!