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

hutch’s picture

Category: bug » feature

Imagepicker 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.

hutch’s picture

Status: Active » Closed (fixed)