Closed (fixed)
Project:
Image Picker
Version:
6.x-2.5
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 20:36 UTC
Updated:
14 Feb 2010 at 17:13 UTC
I am allowing anonymous users to upload images in a comment, but the image picker reports an error:
'Error while saving information to database for uploaded image.'
I tried setting various permissions to no avail and then tracked it down in the code.
There is a check for uid in imagepicker.module (line 2907 of version 2.5) which checks if (! $uid || ! $img_name). The userid of zero for anonymous users triggers the condition, so it fails.
Comments
Comment #1
hutch commentedImagepicker was written from the ground up on the assumption that the user id would be > 0 and to change that would be a considerable rewrite/debug as well as a conceptual change. I don't imagine there will be many admins/site owners willing to put up with the inevitable spambots so sorry, no can do.
Comment #2
hutch commented