This topic is locked

Problems with uploading images

1/7/2007 11:47:52 AM
PHPRunner General questions
A
asimha author

My project works fine, except in Add mode, when I try to upload a picture the system errors out with:
fopen(https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=4322&image=1&table=forumtopics) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections
The directory I am uploading to on the server has permissions set at 775
Am I doing something wrong ??
Thanks for any help!

Andre

Sergey Kornilov admin 1/7/2007

Andre,
change permissions to 776.

A
asimha author 1/7/2007

Andre,

change permissions to 776.


Thank you Sergey, but 776 does not seem correct - I would only be uploading as Admin, not as Guest - would you kindly confirm ?
Also, a quick one, the default permissions of the PHPRunner directory on the web server is 755 correct ?
Thanks!

Andre

Sergey Kornilov admin 1/7/2007

776 permissions may not look correct however it works. A little explanation won't hurt.
Unix permissons mask works the following way:
RWX

421
6 means Read & Write

5 means Read & Execute
776 means directory is readable and writable by everyone (including web server user).
For the rest of folders I recommend to set 755.

A
asimha author 1/8/2007

Thank you Sergey, I have done that and still get the error
move_uploaded_file(https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=14399&image=1&table=forumreplies) [function.move-uploaded-file]: failed to open stream: HTTP wrapper does not support writeable connections.
and
fopen(https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=14399&image=2&table=forumreplies) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections.
Can you suggest anything?
Thank you

Andre

A
asimha author 1/9/2007

Solved!
Thank you Jane

André