FineUploader / fine-uploader

Multiple file upload plugin with image previews, drag and drop, progress bars. S3 and Azure support, image scaling, form support, chunking, resume, pause, and tons of other features.
https://fineuploader.com
MIT License
8.18k stars 1.87k forks source link

Requesting SAS URI for every chunk #2027

Closed yurykovshov closed 6 years ago

yurykovshov commented 6 years ago

Hi,

I have a question. You write "Fine Uploader will call your signature server before each and every request, asking for a SAS URI."

Why do you do that? For every chunk, you request a "new" SAS URI, whereas a shared access signature is given for a whole blob, and basically every time is the same. Why don't you request SAS in the beginning and just use it further?

The same question with OPTIONS. Why call it for every chunk?

rnicholus commented 6 years ago

I don’t recall specifics as it’s been a while since I wrote that code, but I would expect each SAS to be very short-lived, for obvious reasons.

rnicholus commented 6 years ago

If you have specific improvements in mind, please open a PR