First, thanks for this module.
I'm trying to use it to force my user to select an image from a folder of existing image.
I want them them to pick an existing image through imce, to avoid multiple upload of the same image.
However i found that if 2 image field are active with IMCE selected as upload methode, all browse link will disapear when the user upload one image.

Step to reproduce the problem:
- Created a new content type with 2 image field both withIMCE file browser enabled
- Go to the node creation form for that content type.
- Display the IMCE browse link on both field by clicking on "File browser" Without uploading image.
- Once both are showing their browse link, select an image with one of the field
=> The 2nd image browse link disapears when the thumbnails of the first image appears.

I found this bug because i'm trying to hide the default upload option to force to select an image from a folder of existing image. I was trying by adding javascript to seven to hide the default upload form.
Is there no native way to do this? Hide the default upload and only offer the IMCE way?

Comments

quicksketch’s picture

I was trying by adding javascript to seven to hide the default upload form.

This is being discussed in this issue: #932994: Filefield source "Remote URL" (or any other) set as default option (aka Disable Upload option)

The specific problem you described seems to exist for *any* source, not just IMCE. To reproduce:

- Add two fields that have FileField Sources enabled.
- Select "Remote URL" on the first field, but don't enter a file URL.
- Select "Remote URL" on the second field, don't enter a file URL, and click "Transfer".
- The first field switches back to the "Upload" tab, but no Upload field is shown, making it appear as though all options disappeared. You can switch back to Remote URL if desired and things are unchanged.

quicksketch’s picture

Component: Source: IMCE » General
Status: Active » Fixed
StatusFileSize
new3.7 KB
new3.3 KB

These patches restructure our JS so that we don't accidentally double-trigger the code that selects the source after uploading a file into a different field. The D6 version doesn't have any effect really, but it helps keep the code in sync between D6 and D7 versions.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

This occurred to me as well. I corrected it by updating the IMCE profiles:
- Configure this at admin --> Configuration --> Content Authoring --> CKEditor
- come back to update each profile (Full, Filtered and others you may have added)
- Profile: Advanced --> Edit --> File Browser Settings --> Set image browser to IMCE (pull down menu option)