开发者

Permission denied after image upload

I've got a image upload script that works on my Apache on IIS development server, but on the Apache Lunix live server, although the images are uploaded correctly and the MySQL database is updated correctly, I can't view the images.

Viewing the HTML source, checking both the FTP files and the database values, all look OK.

But the image doesn't show, just the white box with the red cross in the corner.

If I try to copy the shortcut of the image and open it in a separat开发者_JAVA技巧e window, I get the following:

I'm not sure what to try next, it seems strange that the files/database/source look good but it just won't show!

I've tried both $HTTP_POST_FILES and $_FILES to upload the images, but both have the same result.


Change the File Permission for images you are uploading, You Apache Server doesn't have permissions to read the image file.

So usually people have Apache Server run as a particular user, which has read (may be write ) access to such content

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜