There is same issue for version 6, which has probably been corrected already, not sure. I create this issue, cause I have the same problem with version 5.
Folder permissions set to full, I use public upload method but still cannot upload any pictures.

Comments

hutch’s picture

Imagepicker will create the directory structure providing you have sufficient permissions on the "files folder", this is not a problem in imagepicker code.
Uninstall it completely, check the File system configuration page, try using the builtin upload as an attachment to a page. If that works imagepicker should install. You may also need to check how much memory php allocates for uploads.

HTH

pyotr777’s picture

I have done as you recommended, namely:
Tried uploading files as attachments - worked.
Uninstalled module than deleted it from disk.
Checked "File system" configuration:
File system path: "files" folder.
Download method: Public
Checked access rights for "files" folder - full access rights (777).
Installed module again and enabled it.

File structure for Image Picker under "files" folder was not created,
when trying to upload files with Image Picker get the same error as before ("unable to create...").

hutch’s picture

Oh dear, I don't know what else to suggest ;-(

pyotr777’s picture

Status: Active » Closed (fixed)

After struggling for a while it seems I have made it working!

I installed Imagepicker in another installation of Drupal, than copied from there "imagepicker" folder with all subfolders inside it and gave full permissions to all the folders I have copied.

Drupal is installed on Linux computer and I'm not good at Linux at all, but maybe the problem had to do with ownership? Why couldn't the module create folders inside a folder with full permissions?

Anyway, I think it's a great module! Best for posting images in Drupal! Thanks a lot! And I'm very happy I finally made it working!

hutch’s picture


Drupal is installed on Linux computer and I'm not good at Linux at all, but maybe the problem had to do with ownership? Why couldn't the module create folders inside a folder with full permissions?

Drupal is running php which is run as a module to apache. As a result the ownership of files/folders created by drupal or any of its modules will belong to the user apache runs as.
Only the root user of your linux install can change ownership, nobody else.
Quite why your original install would not allow imagepicker to create folders is unknown but it has to be something to do with file permissions.