Hello,

I am having a issues with the IMCE file browser hanging when I "Open File Browser" - it will hang and no errors are returned which is making it really difficult for me to debug.

It works fine on my local but not on our pre production server - the filesystem is a mounted AWS S3 bucket.

I am just wondering if there are any steps I should follow to try and get to the bottom of this or anybody can point me in the right direction for getting this solved?

Thanks in Advance

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ufku’s picture

Category: Bug report » Support request
srutland’s picture

Are there a lot image files within the directory that IMCE is opening on? We found that with an AWS S3 bucket that IMCE makes a call to the bucket to retrieve each of the width and then the height of the image. This could potentially be hundreds of calls if you have a lot of files in the directory. We modified the module by turning off the file width and height listing (retrieval) and it significantly sped up the population of the display with the file list.
EDIT: our modification retrieves the image dimensions only when an image is clicked on. That way image sizing operations performed by IMCE can still work. Stay tuned for a patch

ladybug_3777’s picture

srutland ~
Can you provide some more insight on how you've accomplished this task? I'm currently working on optimizations/options for IMCE that will allow working within large image file directories less painful. Within a custom module I've added a cosmetic pager (since it's only cosmetic it hasn't re-gained as much performance as I hoped, so I'm still developing it) and I've added a new tab that will allow us to limit the files displayed based on a year selection. I'd be interested in seeing what you've done too!

Thx!

srutland’s picture

@ladybug_3777
My bad for not responding to this sooner:
I've attached a PDF with the code changes we made to IMCE to handle the height and width parameters that slow down AWS S3 gets. I didn't actually make the changes (our team did), but am passing this along to help the community.
Good luck!
DRUP-D7-IMCEchangedfors3-120417-1240-362.pdf

jerry’s picture

This is working fine for me on 7.x-1.11.

thalles’s picture

Thanks @all!

thalles’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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