Skip Navigation

[Resuelto] Privately accessible file uploaded in a cred form

This support ticket is created hace 6 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Luo Yang hace 6 años, 2 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#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