简体   繁体   中英

Resume File Upload from User's machine to Azure Blob Storage and Download file from Azure Blob to User's machine in Typescript(angular) from Browser

I am very new to Angular. Can anyone please help me how can I RESUME file upload from User's machine to Azure Blob Storage and download file from Azure Blob to user's machine in Typescript(angular) from Browser. I am using @azure/storage-blob npm library to upload/download files to Azure Blob.

SAS tokens have a limited validity: It starts at a certain point in time (which can also be in the future) and ends eventually. For the SAS token expiry keep tracking the expiry time and renew the SAS token. Since for security reason you can't increase expiry time but in case if it's expired then renew.

SAS token basically need to be continuously refreshed on certain interval in order to make sure no connection breach.

So, you can't resume the upload file after the SAS token expired you need to create another SAS token and it will start upload file from zero. But there is another way you can use to resume the upload file using azcopy using the same job id and new SAS token

Reference : Azcopy: Is it possible do resume a download with a new SAS key

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM