Closed stevebeauge closed 2 years ago
@stevebeauge - this will be available tomorrow in the nightly build if you want to give the updates a try. I believe I've solved for your case so interested to hear how it goes. Thanks!
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.
Category
Version
Please specify what version of the library you are using: [3.4.1]
Please specify what version(s) of SharePoint you are targeting: [Online ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
Follow up of #2228
Latest update includes Cancelable behavior of requests. It should allow cancelling chunked file upload.
It should support canceling multiple file uploads, and have no error in the console.
My requirement is to build a webpart that accept droping files and/or folders:
Observed Behavior
Canceling a single file upload actually cancels all file uploads. Found later in the documentation that parallel cancelable requests are not supported.
I also get a 429 error everytime I cancel the file upload.
From my point of view, I guess it's because the Cancelable promise has no "identifier" to respond to the observed event (though I admit the inner code of pnpjs is somehow obscure).
But on top of this issue, I think the Cancelable promise aloneis not an answer to the chunked upload cancellation. Because chunked upload is under the hood a series of requests (one for each chunk + start and finish). That's why I wonder if something else is needed for the very specific case of file uploads.
I guess it's not an issue easy to fix :(
Steps to Reproduce
I can hardly give my testing code because it's part of a larger project. But basically, I have a "service":
And a consumer visual component :