I am trying to use IMCE browser with File widget using FileField Source module. It shows up browser and displays directories but not displaying files that already in that directories. Could you please anyone help me to resolve this?

Comments

ufku’s picture

7wonders’s picture

Title: IMCE browser is not listing out files. » IMCE browser is not listing existing files.

I am having this same issue even with the patches applied on the link you provided ukfu. Strangely enough they show up in the file browser under user pages but not in the file browser for image field. Any ideas why that might be?

ufku’s picture

It lists the files that are registered in database. File field does not allow to use FTP uploaded files.

7wonders’s picture

Is there any clever way to get them registered in the database for a specific folder??

ufku’s picture

It requires PHP skills.

spamator12’s picture

same here

7wonders’s picture

I did it using feeds to import the images first into "image collections" (i.e. nodes). For my purposes it made sense for me to also use this info here - http://drupal.org/node/1080386. Once imported that way they are recognised by imce.

kerios83’s picture

"IMCE browser is not listing existing files" this is exactly what happened to me... after move some files via ftp imce don't see them... however imce see old files... this is strange

bdimaggio’s picture

We're migrating a client from D5 to D7, and wanted them to be able to make references to all the files they had already uploaded in 3+ years of using IMCE on D5. After running into the problem described in this thread, I made a little situation-specific module that told Drupal's file_managed and file_usage tables about these files, thus making them referrable in both node/block bodies and other fields that are using IMCE through filefield_sources. I'm thinking about cleaning this up and releasing it as a helper module for both IMCE and filefield_sources, but I'd only want to do it if those communities would get some use out of it. What do folks here think? Anyone having this problem who'd like to try it out?

kerios83’s picture

Sure, I think many will try out your module.

kendouglass’s picture

bdimaggio: Yes, please. I've been wanting this for years! Are you still working on releasing this? Could you comment here with an attachment of what you are using now?

Zero4ffect’s picture

Please post that helper module. =)

bdimaggio’s picture

Hey, really sorry I dropped this thread. Made the thing, used it, foolishly didn't keep track of where I put the code, and now don't have it anymore. However, someone else seems to have come up with a better solution. Try: http://drupal.org/sandbox/ufku/1373728

zap-admin’s picture

I thought I'd just throw this in the mix. I am having the same issue when using IMCE with an image field. However, it works just find in the body of a node where I have enabled ckeditor. I've been tweaking it but haven't made any magic happen as of yet. I can see all the directories, but no files. Even when I access the IMCE browser within ckeditor/ckfinder...... selecting the sites/default/files/images directory doesn't work. When I go and select "root" then I can see all my images. And when I click on each one... it shows that it's in the "files/images" directory. freaking weird. I'll see if I can get that sandbox link to make things work... or try the link above. Thanks to all those that posted regarding this issue.

zap-admin’s picture

bdimaggio..... thanks so much for posting the link. It totally makes IMCE work like I need it to for the image field. You made my night...err... morning.

Thanks again.

ufku’s picture

Status: Active » Closed (fixed)