I have installed PHP8.2 and Apache and uploaded a simple PHP script to upload images. It’s a very simple php script to upload files.
The issue is that I’m getting this message “Failed to open stream: No such file or directory in”. Which means that the temp file was not uploaded to
The print_r($_FILES) displays this:
Array ( [name] => 14955828_1517805064899902_6497754076576078705_n.jpg [full_path] => 14955828_1517805064899902_6497754076576078705_n.jpg [type] => image/jpeg [tmp_name] => /tmp/phpxuSNXU [error] => 0 [size] => 72072 )
The error result is 0, which means that the file was uploaded. However, when I check the
/tmp folder, the uploaded file is not there.
It looks like the file is not even uploaded to the
This is a new fresh installation.
Does anybody experience this before?
Thanks for your help.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.