At least on a server which has php running as the user (with suPHP), could the Asset Import module auto-create the 'images' and 'images/import/' folders?

Drupal does this by auto-creating the 'files', 'images', 'images/temp', 'files/pictures' folders when php is running as the user (not when php is running as the webserver) and when the respective modules are enabled and the module links are clicked under 'Site Configuration'.

Comments

wmostrey’s picture

I wonder: why? The asset module handles any type of file, not just images, so creating an image folder seems a bit off. The asset_import module (which is not enabled by default) can import the files from anywhere in the filesystem so I don't see a need to force an asset/import folder. A user can create any directory from within the asset wizard so I don't think there's a reason to do this.

Let me know what you think about it, but I'm tended to mark this as "won't fix".

venkat-rk’s picture

I wonder: why? The asset module handles any type of file, not just images, so creating an image folder seems a bit off. The asset_import module (which is not enabled by default) can import the files from anywhere in the filesystem so I don't see a need to force an asset/import folder.

Okay, I understand the logic behind the module now.

However, the onscreen message when you click on 'Asset import' under 'Site Configuration' refers to files/images/import. I don't remember exactly what the rest of the message said, but I felt new users could be confused about what to do. May be I am wrong.

wmostrey’s picture

Well this path is set at admin/settings/asset_import. When you first visit the import page, you should get a link to this settings page to set the correct directory. Could it be that you went to this url and clicked "save"?

wmostrey’s picture

Status: Active » Postponed (maintainer needs more info)
jamescarvin’s picture

I can't remember how I did my installation of the images import module at this point. It was last month. But I get the error message "The directory files/images/import does not exist."

I checked my directory and see that under drupal I have files/images but there is no import file in the images directory.

Did I install this wrong? If so, how do I uninstall it and start from scratch?

venkat-rk’s picture

jamescarvin, I think the way this works is that the import directory has to be created if you don't already have the image.module and its image.import module installed.

wmostrey’s picture

Status: Postponed (maintainer needs more info) » Active

There's no need to reinstall any module. You can create those directories yourself, or change the path at admin/settings/asset_import.

wmostrey’s picture

Version: 5.x-1.0-alpha3 » 5.x-1.x-dev
wmostrey’s picture

Assigned: Unassigned » wmostrey
Category: feature » bug
Priority: Normal » Minor

This is in fact a bug, it's a left-over from the image import module.

wmostrey’s picture

Status: Active » Fixed

This has been fixed on dev: http://drupal.org/cvs?commit=129523.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.