I'm developing a plugin. Where is the best place to store a user uploaded file that is sensitive in nature? It should not be web accessible. Given the encoding of the file, it's necessary that it be uploaded, as opposed to storing it in the database.
I'm developing a plugin. Where is the best place to store a user uploaded file that is sensitive in nature? It should not be web accessible. Given the encoding of the file, it's necessary that it be uploaded, as opposed to storing it in the database.
Upload files at anywhere ( normally create your own folder inside wp-content/uploads
folder ), you can create .htaccess
file and index.html
files inside the folder to restrict the files from direct access.
Keep index.html
blank and add deny from all
text in .htaccess
file.