Where to save/extract files on Azure Web Sites?

前端 未结 1 1163
谎友^
谎友^ 2020-12-16 06:25

I have web application for running unit tests for our data and I want to deploy it as Azure Web Site.
The problem is in this app I\'m downloading quite large zip

相关标签:
1条回答
  • 2020-12-16 06:45

    In case of Web Sites and when your storage requirements fit withing the constraints of provided local storage - you certainly can use local storage.

    However Path.GetTempPath() is not your best choice for Azure Web Site. I would say you shall put all the files in a folder which is part of your web app root folder, i.e. Server.MapPath("~/tmp/"). Make sure to first check for folder existence, etc. There you can utilize all the storage you have.

    As for Blob - you have to unzip each file separately and upload it separately to a blob. And when you have to work with the files, you have to download them again. I don't believe this is real solution, as long as you have enough local storage you can utilize.

    0 讨论(0)
提交回复
热议问题