aimythomas — 2012-09-19T01:03:25-04:00 — #1
When I upload image files they have the same extension twice. And my script doesn't show it even it the path is correct.
Some scripts copy the file from the tmp dir server to the required directory, while others just move it. What happens to the files that were just copied? Do they stay there or does the server remove them?
Thanks in Advance
blogaddition — 2012-09-19T01:34:13-04:00 — #2
could you post the code that you have used in your script.
cpradio — 2012-09-19T07:24:04-04:00 — #3
We would need to see your upload code to help debug that issue.
This is dependent on what the server you are running on uses as the temp directory for uploads set in the php.ini file. Most servers using the Operating System /tmp folder. That folder is cleared out on reboot of the server (sometimes on a schedule as well), so they will not be persisted. If the host choose a different folder to store the uploaded files temporarily, then the host would have to create its own purge for that folder too, otherwise, the files would be kept.