Problem:
Is there a way to specify a custom file upload path or file name prefix for these fields so that I can protect those files as they are sensitive in nature and shouldn't be able to be found and accessed by the public?
Solution:
There isn't such kind of built-in feature within Toolset plugins, you will need to consider custom codes, for example:
https://toolset.com/forums/topic/upload-path-for-user-profile-files/#post-1302729
Relevant Documentation:
https://developer.wordpress.org/reference/hooks/upload_dir/
https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_handle_upload_prefilter
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.
Our next available supporter will start replying to tickets in about 0.93 hours from now. Thank you for your understanding.
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 4 replies, has 2 voices.
Last updated by 5 years, 3 months ago.
Assisted by: Luo Yang.