dynamic save path

Caldera Forms Bug Released
June 06, 2020 09:36:29
pkusmierczuk
Topics: 1
Messages: 2
Hello,

I want to save every pdf file to user folder based on their username.

For example: if user X fills a form, pdf is generated and saved automatically to directory wp-content/user/X, user Y to wp-content/user/Y and so on. I know that directory must be created beforehand.

I've tried to use this shortcode but with no luck:
[e2pdf-save id="1" name="%name%" dir="wp-content/user/{user:user_login}/"]

I don't know how to declare this variable {user:user_login} cause i tried to use static username and it works flawlessly.
Also, when using this variable outside shortcode (in Success Message) i'm getting my username correctly.
Is it variable itself, is it wrong syntax? Is it doable at all it this way? Please help.
June 06, 2020 14:08:58
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

We could replicate issue from our side. Please expect update in nearest time. We will update this thread as soon as it will be any news. Sorry for inconvenience.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
June 07, 2020 07:06:50
pkusmierczuk
Topics: 1
Messages: 2
Thank you for quick reply, I'll be waiting for your response.
June 09, 2020 09:47:25
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

We just released update (1.11.02) which contains fix for dynamic dir path. It was also added additional attributes ("create_dir", "create_index", "create_htaccess"), more information can be found on documentation page: https://e2pdf.com/support/docs#shortcode-e2pdf-save

Let us know please if you will face any issues after update. Thank you.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.