Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Multi Upload #85

Open
variousred opened this issue Aug 27, 2015 · 6 comments
Open

S3 Multi Upload #85

variousred opened this issue Aug 27, 2015 · 6 comments

Comments

@variousred
Copy link

sort of related to #38
where i've made a couple comments

@variousred
Copy link
Author

@digitaltoad i'm still getting this issue with 0.3.9 ... not sure why. I'm using the S3Uploader

@digitaltoad if (Ember.isArray(files)) { never returns true. The upload method is only passed a single file at a time with uploader.upload(files[0]); // Uploader will send a sign request then upload to S3

@digitaltoad
Copy link
Member

Multi uploads have always been a sore spot with this library. I don’t think I’ve ever fully supported multi file uploads with S3. I can look into though.


Josh

On Wed, Aug 26, 2015 at 9:54 PM, Michael Mitchell
[email protected] wrote:

@digitaltoad i'm still getting this issue with 0.3.9 ... not sure why. I'm using the S3Uploader
@variousred

variousred commented 21 minutes ago

@digitaltoad if (Ember.isArray(files)) { never returns true. The upload method is only passed a single file at a time with uploader.upload(files[0]); // Uploader will send a sign request then upload to S3

Reply to this email directly or view it on GitHub:
#85 (comment)

@variousred
Copy link
Author

Dont know why I didnt think of this yesterday, but a fix was easy enough:

    if(!Ember.isEmpty(files))
      $(".asset-total").text(files.length)
      loader.show()
      label.hide()
      for file in files
        uploader.upload(file)

just call the uploader once for each file iteratively

@digitaltoad
Copy link
Member

That was my initial fix.


Josh

On Thu, Aug 27, 2015 at 7:09 PM, Michael Mitchell
[email protected] wrote:

Dont know why I didnt think of this yesterday, but a fix was easy enough:

    if(!Ember.isEmpty(files))
      $(".asset-total").text(files.length)
      loader.show()
      label.hide()
      for file in files
        uploader.upload(file)

just call the uploader once for each file iteratively

Reply to this email directly or view it on GitHub:
#85 (comment)

@variousred
Copy link
Author

Though it works well enough, doesn't feel quite right since uploader#upload is designed to handle an array of files

@digitaltoad
Copy link
Member

I would like to handle it a bit different. The problem arises over progress and the expectation around per file or per request events. It could be configurable.


Josh

On Thu, Aug 27, 2015 at 7:40 PM, Michael Mitchell
[email protected] wrote:

Though it works well enough, doesn't feel quite right since uploader#upload is designed to handle an array of files

Reply to this email directly or view it on GitHub:
#85 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants