Hi @inerea,
Welcome to WP Data Access!
If I understand your question correctly, you want to be able to upload files? Unfortunately, this is not yet supported. It is on my to do list…
Sorry,
Peter
Thread Starter
Inerea
(@inerea)
Hi Peter,
first, thank you for listening to me, I hope you can develop that function soon. For my project that function is necessary, so I will try to find a solution. I’m going to install in the frontend the plugin Contact Form 7, which works perfectly with files. I will fetch the data from the form and insert it into the table. I think it can be a solution: Frontend => Contact Form 7, Backend => WP Data Access and in the middle of both work with PHP hooks.
If you have any better ideas, I appreciate your opinion.
Thanks,
Nerea
Hi Nerea,
If you can write your uploaded files to a public folder, you can use dynamic hyperlinks to add links to your files. If you store the filename for example in column file_name, the dynamic hyperlink just needs to concatenate your public path and file name. Dynamic hyperlinks are explained here:
https://wpdataaccess.com/docs/documentation/data-explorer/dynamic-hyperlinks/
This will only work with files on public URLs. Will that work for you? Or do you need some kind of protection to allow only specific users to see your files?
Thanks,
Peter
Thread Starter
Inerea
(@inerea)
Hi Peter,
Users are the ones who send files through a form. Files should only be visible to the administrator.
I am working with the Contact Form integration, I have already managed to insert data from the form to the table, it’s a lot of work… so I’m desire that some WP Data Access update will allow to upload files.
Thanks,
Nerea
Hi Nerea,
>>> Users are the ones who send files through a form. Files should only be visible to the administrator.
Thanks for the info! That clarifies it.
Thanks,
Peter