I code a php file in localhost which upload images to my destinated dir.
After the clicks everythings work well, but I didn’t find my uploaded images in my /srv/http/uploads dir.
I then upload my php to my host server online then test it. It works. My files are uploaded to my destinated dir. So I know it’s about my localhost server.
I read an article in Stack Overflow and then I change my httpd.conf and php.ini files to this:
<Directory /srv/http/tmp/> Options - Indexes AllowOverride none Require all granted </Directory> <Directory /srv/http/tmp/> Options - Indexes </Directory>
file_uploads = On upload_tmp_dir = /srv/http/tmp/ upload_max_filesize = 500M
I also change the permission of my srv/http/ dir to myself use chown command. Still no use.
How can I get this work?