Open macctown opened 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...
Check the directory permisions.
I have the same problem... every image I try to upload returns void...
@Goteo which are suggested folder permissions/group? I'm on 755...
@mactown: It works with 777... but.... Which user should we add?
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...
@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...
issuing chmod 777 to data and image folders helped me getting images correctly.
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?