Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Path settings > File path is ignored on image upload.
I marked the priority critical because it's extremely important in the circumstances. We are dealing with mass upload, there may be hundreds of images per node and thousands altogether. Given that, if all images reside in a single folder on the server, a regular Linux server will go exponentially slower indexing thousands of images from a single location. Thus a more comprehensive directory structure needs to be introduced over server speed considerations.
Comments
Comment #1
grandcat CreditAttribution: grandcat commentedIt isn't ignored. But you can't use all combination of tools like token. This might be your problem.
Comment #2
mp CreditAttribution: mp commented@ain
did you solve your problem?
got the same here ... all images are stored in "tmp" directory
greets
Comment #3
sinuz CreditAttribution: sinuz commentedI have the same problem, using the RC3 CCK version of the module.
The file path is set to "photo", so i have no tokens in use but it saves all images to the files directory... Normally i would use the path "photo/[site-date-yyyy]" but this works neither (it works when only using the imagefield module though).
Help with this problem is very much appreciated, i just uploaded 2k images which all have been uploaded to the files folder *sigh*
Comment #4
ball.in.th CreditAttribution: ball.in.th commentedI just run into this problem. For me, File path is set to "imgfupload/[uid]". Nothing is created in the files directory after uploading files.
Comment #5
grandcat CreditAttribution: grandcat commentedPlease don't use CCK3 nor PHP 5.3.
Comment #6
ain CreditAttribution: ain commentedI'm running CCK 6.x-2.6 with PHP 5.2.11, problem with paths is still there.
Let me know if I can assist you in narrowing this down/improving the situation.
Comment #7
ball.in.th CreditAttribution: ball.in.th commentedCCK 6.x-2.6 with PHP 5.2.11 on windows host for me.
Comment #8
timlie CreditAttribution: timlie commentedSame here, even no tokens used. It only works if I leave it blank!
Comment #9
timlie CreditAttribution: timlie commentedSame here, even no tokens used. It only works if I leave it blank!
Comment #10
skizzo CreditAttribution: skizzo commentedI set File path to imgdir/[uid] but all images got uploaded to default files directory.
I then manually created the imgdir directory (with proper Unix permissions).
Images are now uploaded to the correct directory structure, including [uid] subdirs.
Hope that helps...
Comment #11
ydv CreditAttribution: ydv commentedTokens are ignored. If you simply indicate the way to the folders everything will work. Please, repair...
Comment #12
jcmarco CreditAttribution: jcmarco commentedI have the tokens in file directories working fine but I am using the filefield_paths module that adds extra token support to filefield fields.
Comment #13
Romejoe CreditAttribution: Romejoe commentedSimilar problems here. All works fine until I enter a path (installed: Token, FileFieldPaths). He uploads in the correct directory structure but even if all is placed correctly he does not show the preview after clicking NEXT STEP.
Edit:
No Idea why (changed nothing as far as I know) now it shows me the pictures even with the path changed as preview.
But I ran into another problem. Will create a new issue for that.
Edit:
Without changing anything it happened again (uploading to a new directory that did not exist). Got the 2 slashes after the imagecache directory (...imagecache//mydirectory/...). Because of that the images won`t load.
Comment #14
Romejoe CreditAttribution: Romejoe commentedI fount the error in my drupal. By accident I placed initial slashes in the path (can not remember anymore if it was in the filefield paths or whereelse). As soon as I removed them it worked as supposed to.
But should there not be a warning?
Comment #15
Magnus CreditAttribution: Magnus commentedCheck out the patch in comment #10 and see if that helps you: #635854: Node links to original file path after creation until the node is saved again
Comment #16
Magnus CreditAttribution: Magnus commentedSee #409070: Image FUpload doensn't support file path tokens via Filefield Paths module
Comment #17
Salonbus CreditAttribution: Salonbus commentedIt seems that image_fupload would not create sub folders, the result is that all images save to "files".
but, i change the field widget to normal image widget, then upload a image, the sub folder in "files" created.
after that, change back to image_fupload widget, it work as design...all images stay in the folder you prefered.