Hello!
Help, please, with the POST method on WAMPSERVERE, this is a file download. Here is the html form:
<form enctype="multipart/form-data" name="ufile" action="upload.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="50000" /> <input name="ufile" type="file" /> <input type="submit" value="Загрузить" /> </form>
It works and allows you to select a photo. But in the processing script I get this information via phpinfo ():
_FILES["userfile"] [name] => Las.jpg - это оригинальное название фотки [type] => image/jpeg [tmp_name] => С:\wamp\tmp\php8B15.tmp [error] => 0 [size] => 8652
It would seem that all is well, there are no errors, the file is downloaded. But in the folder C:\\wamp\tmp
, where it should be temporarily placed with the temporary name php8B15.tmp it is NO! In short, the file is not downloaded or is not written to this folder. There are only sessions.
I stopped the script before moving the temporary file and such a picture. The properties of the folder checkbox "Read Only" and can not be changed. However, such flags on almost all folders and everything is perfectly written there. For example, they are written in the C:\\wamp\tmp
session. And the uploaded file is not.
I'm trying to upload a file from my computer to the local server and nothing happens. And manually, it is perfectly recorded and deleted in this folder.
What is the matter, who knows, help!
Thank.