GoteoFoundation / goteo-legacy

Unsupported legacy code for the Crowdfunding Open Source platform Goteo - http://goteo.org/ - Get the new version here: https://github.com/GoteoFoundation/goteo
http://www.goteo.org
Other
234 stars 193 forks source link

Error Image Uploading #76

Open macctown opened 10 years ago

macctown commented 10 years ago

Every time when I upload image, no matter in projects or user profiles, it always shows me nothing(a image with a cross).

The info of image has insert to db, but it isn't moved to the "data/images"...

What should I do about this?

macctown commented 10 years ago

I find the way to use image->save();

But the method "move_uploaded_file" always return false.

I use xampp in mac os...

Goteo commented 10 years ago

Check the directory permisions.

lykia commented 10 years ago

I have the same problem... every image I try to upload returns void...

lykia commented 10 years ago

@Goteo which are suggested folder permissions/group? I'm on 755...

lykia commented 10 years ago

@mactown: It works with 777... but.... Which user should we add?

Goteo commented 10 years ago

Depending on the OS/distro the images are writed on disk by the php user (depends) and then served with apache user.

Try to make a chmod from php just after uploading.

We're sorry, dont know about OSX...

lykia commented 10 years ago

@Goteo ok, I got this working, but with 777 which is not so good.... I think adding php user is better. For any convenience, I run on a live server with Centos6, and php 5.5.9

maybe we can close this thread...

cesc1989 commented 9 years ago

issuing chmod 777 to data and image folders helped me getting images correctly.