Problem/Motivation

The latest plupload library provided a new widget with jQuery UI, which provides richer feature such as thumbnails view and drag and drop sorting.

Proposed resolution

Add new attributes on plupload element for choosing the widget to apply. The proposed new attribute name is #plupload_widget and its allowed values are "queue" and "ui". The default value is "queue".

Remaining tasks

The current patch is done on 7.x-1.x , we need to make it on 7.x-2.x as well.
jQuery 1.7 or above is required for the new feature. We need to implement dependency checking and display message when the new widget is loaded.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jimmyko created an issue. See original summary.

jimmyko’s picture

This patch is same as the one in this comment

DrupalGideon’s picture

I just added this patch (it wouldn't patch properly so I had to do some manual work) and I'm using the 2.x-dev branch of the module. It seems to work fine - apart from one issue which is styling.

If I set the views settings for #plupload_settings so the list is TRUE and the thumbs is FALSE, then the header in my admin theme (which uses CSS reset) is really short. If I then set another setting e.g. max_file_count and then exceed the file count, the error that appears where the header is, is cut short.

This could be avoided if the .plupload_header_title and .plupload_header_text were not set to display: none;.

Screen grabs to show what I mean are attached.

If this could be adjusted, I see no reason why this patch can't go into the module as it's really handy.

DrupalGideon’s picture

Correction to above - it does not work with FileField Sources Plupload. So still needs work.

My FileField Sources widget defaults to the queue version by the looks of it, but it breaks. Even switching to the UI version to test (by quickly patching FileField Sources Plupload) still doesn't work either.

So more work needed.

jimmyko’s picture

@DrupalGideon

Sorry for this late reply. I will try to make a patch for 7.x-2.x branch and fix the issue asap as I have some spare time recently :)