When i select the Multiupload widget, FileField Sources become unavailable.

Please fix this.

Comments

ttkaminski’s picture

I agree that it should be possible to use FileField Sources and Multiupload Filefield together. This would be the ULTIMATE solution! I'm not sure if FileField Sources or this module (or maybe both??) needs to be patched to make this happen.

czigor’s picture

Made #1412636: Add support for Filefield sources module the duplicate of this. There are some useful infos over there though.

milos.kroulik’s picture

Title: Make Multiupload compactible with FileField Sources » Make Multiupload compatible with FileField Sources
Issue summary: View changes
chaseontheweb’s picture

Patch attached. I did only a cursory check, which appeared to work:

  • Upload 1.txt and 2.txt via the MFW,
  • Select existing 3.txt from the "Reference existing" pane of filefield_sources
  • All three files appear as selected.

This probably needs more thorough testing. Filefield_sources completely replaces the #process, #pre_render, etc. callbacks from managed_file whereas I had to append to them to make things work properly.

8bitplateau’s picture

hmmm sort of works, but I find there is no settings visible to set file field sources any more, guess that mod needs a patch too ?

Dandily’s picture

Thank you! Patch work fine for me.

fietserwin’s picture

Status: Active » Reviewed & tested by the community

Patch #4 works fine. I tested it with images, thus including the patch in the child issue (see below):
- Edit node.
- Adding images via several ways (multi-upload, imce, autocomplete).
- Inserting some into the body field (using insert module that links to colorbox).
- Deleting some images.
- Saving node.
- Images are there, links to Colorbox work as expected.
- Editing node.
- deleting images.
- Saving node.
- Images are removed.

I reopened #1412636: Add support for Filefield sources module and added a patch there that implements hook_filefield_sources_widgets to add the image widget. That patch depends on this patch.

Abelito’s picture

Thanks for the Patch in #4. It is works just fine.

Anonymous’s picture

Status: Reviewed & tested by the community » Needs work

I cannot see this working. I've patched both MFW and MIW modules, and while MIW shows Filefield Sources options on the field edit form, MFW doesn't... Am I missing something?

Anonymous’s picture

Status: Needs work » Reviewed & tested by the community

Oops, my apologies. I must have stuffed up the patching, as I re-applied it and it now seems to be working. All good!

czigor’s picture

I'm not feeling comfortable with adding these #process etc callbacks I don't know. Some more feedback would be nice. Has anyone been using this for a longer time in production?

fietserwin’s picture

Since January 2016 ... no problems at all.

Abelito’s picture

Since March 2016 on my production sites with no problems.

vladimiraus’s picture

Thanks all for your input. Committed! 🍻

vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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