In the media.js file there is a todo that states

  // Temporarily disable attach fields other than the one we're currently
  // working with. Filter out fields that are already disabled so that they
  // do not get enabled when we re-enable these fields at the end of behavior
  // processing. Re-enable in a setTimeout set to a relatively short amount
  // of time (1 second). All the other mousedown handlers (like Drupal's Ajax
  // behaviors) are excuted before any timeout functions are called, so we
  // don't have to worry about the fields being re-enabled too soon.
  // @todo If the previous sentence is true, why not set the timeout to 0?

I have run into some problems with uploading of large amounts of files because of this timeout. I will attach a patch to low it to 0

CommentFileSizeAuthor
#1 2391799-why-not-set-the-timeout-to-0.patch361 bytese2thex
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

e2thex’s picture

Attaching patch

Chris Matthews’s picture

Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team