Hi, i´m having a little problem, i am currently developing a social networking site for pets (petlove.eu), and I´m using latest versions of all modules and Drupal.
Users loggin and fill out a profile node made out of cck fields, one of them is a userfoto (imagefield), i´m also using loggintobogan so the user gets assingned a role "unverified user" until he confirms email, with that role they should be able to fill out their profiles, but the problem is they cant view their image! (if i try to paste the image address in my browser, i get thi error:
warning: fopen(/tmp/tmp_lIgstF) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/petlove.eu/httpdocs/includes/file.inc on line 562.
I believe it is an access error, so i tried no enable this field under the cck_field_perms module, and gave view and edit permisions to my field, but that didn´t help.
Can you help me determine where the error is?
I´ll try to set drupal file system to public to see if that helps, but think it would be better private.
Hope everything is clear... ;)
Comments
Comment #1
dopry commentedYou can't simply change drupal between public and private files. The files are stored in absolute paths from drupal root. You can do it with some rewrite magic though. You probably don't want to run drupal's private files on a large site... It generates a lot of load. Did unverified users have permission to view files? I haven't test private files support in imagefield in some time.
Comment #2
billmurphy commentedThanks for the tip on the load, i´ll probably set it up as publc access to files.
I swithed to public access and image was visible to "unverified user", went back to private and that image was visible to the "unverified user".
>Did unverified users have permission to view files?
Hmmm, not sure, but just added it for "anonymous user" (witch I didn´t try before) and seems to be working. probably that was the problem.
Thanks!
Comment #3
dopry commentedyessir when using private files you need to give anonymous users access to view images. :)
.darrel.
Comment #4
dlx commentedHm... Whouldn't enabling viewing uploaded images for anonymous user basically disable access control for ANY file attachment? It doesn't sound right... IMHO, imagefield should have a separate from upload module set of permissions.