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
/tmp/
won't cause anything to happen automatically, you'll have to write the code to trigger a behaviour.