Skip Navigation

[Resolved] Privately accessible file uploaded in a cred form

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1100815

Tell us what you are trying to do?
How could I have a file uploaded to a private folder that has htaccess set to deny all? Then serve that link in the post. Overall what I am trying to achieve is a customer fills out a cred form. This form has specs and then the company later on uploads a file to that post through an edit. Customer goes in and downloads it from their post. I already have post viewing restricted to only the author or admin.

What is the link to your site?
Site is under local development.

#1101356

Hello,

There isn't such a built-in feature within Tooslet form plugin, it needs custom codes, for example, you can use try wordpress built-in filter hook "upload_dir" to change the folder to your own specific folder:
https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_dir