Home › Forums › Quform WordPress › Changing the file upload path
- This topic has 4 replies, 2 voices, and was last updated 8 years, 11 months ago by pedrocsramos.
- AuthorPosts
- May 18, 2015 at 9:19 am #15321pedrocsramosParticipant
Hello,
I read the page on modifying the upload path (https://support.themecatcher.net/quform-wordpress/guides/customization/modify-the-file-upload-path) but I have two doubts:
1) The page is built considering a particular example ($name). How can I know which code to put in the functions.php so it reflects the fields of my form I want to include in the folder name?
2) This is more of a curiosity and less of a question, but isn’t there an easier way to do this? I thought there could be a easier way considering there is a path editor in the field settings.
Thank you in advance
May 20, 2015 at 10:18 am #15336AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 20, 2015 at 11:42 am #15341pedrocsramosParticipantHello,
Thank you for your quick answer.
In one of my forms (form ID 1) containing a file upload field I also have a dropdown-box called Ano that can assume one of the following values (-; 5º; 6º; 7º; 8º; 9º; 10º; 11º; 12º; Vários; Outro) and has as unique ID iphorm_1_2.
Instead of having as folder path iphorm/{form_id}/{year}/{month}/ I would like to have iphorm/Ano, so if someone would send me a document and choose in the form 5º it would be saved under iphorm/5º.
Thanks in advance
May 25, 2015 at 4:02 pm #15366AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 26, 2015 at 11:39 am #15374pedrocsramosParticipantThank you for your answer!
Works perfectly.
- AuthorPosts
- You must be logged in to reply to this topic.