Does AWS SDK for Javascript work in a web worker (for performing Multi-part upload)?

I was trying to use AWS SDK for JS to perform a multipart upload in a web worker. When i initiate a createMultipartUpload, I am able to see the uploadID in api call for incomplete multipart upload. But the createMultipartUpload is not returning the upload ID. Can we use the AWS SDK for JS on the web worker? and if so am I doing anything wrong here?

Code:

  a=s3.createMultipartUpload(params, function (err, data) {
        //Execution doesn't reach here
        console.log(data);
        if (err) {
            console.log(err, err.stack); // an error occurred
        } else {
            uploadId = data.UploadId
        }
    });

46 thoughts on “Does AWS SDK for Javascript work in a web worker (for performing Multi-part upload)?”

  1. Hey I know this is off topic but I was wondering if
    you knew of any widgets I could add to my blog that automatically tweet
    my newest twitter updates. I’ve been looking
    for a plug-in like this for quite some time and
    was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I
    look forward to your new updates. http://herreramedical.org/azithromycin

    Reply
  2. 424105 425005Excellent post even so , I was wanting to know in case you could write a litte much more on this topic? Id be extremely thankful in the event you could elaborate slightly bit further. Bless you! 55270

    Reply

Leave a Comment