admin管理员组文章数量:1125072
I create a custom plugin with a upload file input in the admin area, my concern is, what happens to the file after upload?
My concern is that the file that is going to be uploaded has sensitive information that I want to store to database in custom option(just making it more easy for my client to just drag and drop the file).
The process that I see is that the file is stored in the /tmp/ folder (stil not sure where it is located), then I get access to the file with $_FILES["input_name"]["tmp_name"]
and manage it, but...what happens to the file? is it deleted, do I have to manually delete it.
I ask because it's a security issue that I am worried about, not sure if these temporary files can be access by third party.
PS: The /tmp/ folder is not created by me, when I debug I check the $_FILE and I see inside this array a key value ($_FILE['tmp_name']
)with the name "/tmp/php7DjaSfE" and this is how I access the content of the uploaded file
本文标签: plugin developmentDo uploaded files to tmp get deleted in WordPress automatically
版权声明:本文标题:plugin development - Do uploaded files to tmp get deleted in WordPress automatically? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736651473a1946150.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论