Quantcast
Channel: Why does PHP store uploaded files in a temporary location and what is the benefit? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by 24Ahead for Why does PHP store uploaded files in a temporary...

Two additional reasons:If you decide not to accept the file for some reason, it's stored in a temporary location and presumably will be automatically deleted at some point.Security. Let's say PHP was...

View Article


Answer by bishop for Why does PHP store uploaded files in a temporary...

Good question. The short answer is that PHP must process the entire HTTP request - filling out $_POST with data, and $_FILES as needed - before giving control to your script. Since your script doesn't...

View Article


Answer by Jomoos for Why does PHP store uploaded files in a temporary...

From What is the benefit of writing to a temp location, And then copying it to the intended destination?:On most platforms, file moves are atomic, but file writes are not (especially if you can't write...

View Article

Why does PHP store uploaded files in a temporary location and what is the...

Okay I'm totally new in this field and going through some tutorials and I found that while uploading files in PHP it stores them in a temporary location....

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>