s3_direct_upload icon indicating copy to clipboard operation
s3_direct_upload copied to clipboard

Unable to set options on fileupload plugin directly

Open ryanwood opened this issue 12 years ago • 1 comments
trafficstars

I need to set the sequentialUploads option to true on the fileupload plugin. Is there a way to pass though options from S3Uploader to the underlying fileupload?

Right now it looks as if I need to hack the gem to accomplish this:

  setUploadForm = ->
    $uploadForm.fileupload

      sequentialUploads: true

      add: (e, data) ->
        file = data.files[0]
        file.unique_id = Math.random().toString(36).substr(2,16)

It looks like #28 was fairly promising to have a consistent API that would allow this but it seems to have died a slow dead.

Thoughts?

ryanwood avatar Sep 02 '13 16:09 ryanwood

Wow this is pretty old. I'm looking to customize dropZone in fileupload as I have multiple forms on one page, and dropping triggers all of them.

nym avatar Feb 03 '15 00:02 nym