Reusing a temporary file created when uploading a file in PHP form

regarding file uploads, I have a form through which I upload a file, I get $temp_name = $_FILES['name']['temp_name']and save it in a variable.

Can I use this variable again inside move_uploaded_file("$temp_name","$location")inside another form.

Will this work?

When we upload the file, a temporary location is created on the server. How long can a temporary file be used?

Thank.

+3
source share
1 answer

script, , script. , .

+5

Source: https://habr.com/ru/post/1733651/


All Articles