Reputation: 661
I have a project ASP.Net MVC classics which need to be migrated to Azure and host in AppServices. Currently this project save files in the root folder and file size could be 2GB.
Now the question is should I leave the current logic to store the file in wwwroot folder as:\wwwroot\Files\myfile.txt"; or should I store it in the blob?
I am looking for the best practice and do not want to change the current logic? Can someone give me the idea?
Thanks
Upvotes: 0
Views: 580
Reputation: 11148
Storing files in Azure Blob Storage:
Azure Blob Storage enables the creation of data lakes for analytics purposes and provides storage for the development of powerful cloud-native and mobile apps. Reduce costs by using tiered storage for long-term data and scalability for high-performance computing and machine learning workloads.
SAS enables you to securely upload and download files from Azure Blob Storage without having to share the connection string.
Storing file in wwwroot folder:
Static resource files are stored in web root, The default directory is {content root}/wwwroot folder.
Upvotes: 2