azure-storage-files

Simple PHP cURL file upload to Azure storage blob

让人想犯罪 __ 提交于 2021-02-04 14:17:27
问题 I have issues to create a new/simple PHP script/function with cURL to upload simple file (image.jpg) from local server to Azure storage - blob container using Shared Key authentication. I do not want (for other reasons) use SDK and/or multiple files/libraries. I need only one function - fileUpload - and that is it. Documentation does not provide complete example for upload (POST) with file overwrite. https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/authentication-for-the

Azure Storage FileShare with ASP.Net Core and Razor Page

走远了吗. 提交于 2021-01-29 09:28:48
问题 Beginner question I am using the latest ASP.NET Core SDK to build an MVC/Razor page to display user files. We have the files in Azure Storage FileShare. The difficulty I'm running into is getting the FILES to list out and there is very little documentation on how to do this out there. Once I finally get it figured out I would like to create a post on Medium or somewhere else to help any other beginners. The file structure of the File Share is as such: Azure File Share MainShare EmployeNumber

Azure File storage content-type is always application/octet-stream

限于喜欢 提交于 2021-01-27 03:56:55
问题 I'm currently having issue with Azure File storage when I build up a URL with a shared access signature (SAS) Token. The file will download in the browser, but the content-type is always application/octet-stream rather than changing to match the mime type of the file. If I put the file in Azure BLOB storage and build up a URL with a SAS Token, it sends the correct content-type for my file (image/jpeg). I've upgraded my storage account from V1 to V2 thinking that was the problem, but it didn't

Azure File storage content-type is always application/octet-stream

℡╲_俬逩灬. 提交于 2021-01-27 03:55:13
问题 I'm currently having issue with Azure File storage when I build up a URL with a shared access signature (SAS) Token. The file will download in the browser, but the content-type is always application/octet-stream rather than changing to match the mime type of the file. If I put the file in Azure BLOB storage and build up a URL with a SAS Token, it sends the correct content-type for my file (image/jpeg). I've upgraded my storage account from V1 to V2 thinking that was the problem, but it didn't

Azure File storage content-type is always application/octet-stream

荒凉一梦 提交于 2021-01-27 03:55:07
问题 I'm currently having issue with Azure File storage when I build up a URL with a shared access signature (SAS) Token. The file will download in the browser, but the content-type is always application/octet-stream rather than changing to match the mime type of the file. If I put the file in Azure BLOB storage and build up a URL with a SAS Token, it sends the correct content-type for my file (image/jpeg). I've upgraded my storage account from V1 to V2 thinking that was the problem, but it didn't

Azure CLI edit Content Type file property

徘徊边缘 提交于 2020-06-17 15:53:07
问题 I'm trying to update Content Type property of a file located in my Azure $web blob container using Azure CLI. I'm trying to do this because it's wrongly set and my service-worker.js (for my PWA) needs to have "application/javascript" instead of "text/plain; charset=utf-8" in order to be registered. 回答1: When using Azure cli, you should use az storage blob update. The sample code: az storage blob update --container-name xxx --name xxx --account-key xxx --account-name xxx --content-type

Azure CLI edit Content Type file property

微笑、不失礼 提交于 2020-06-17 15:50:27
问题 I'm trying to update Content Type property of a file located in my Azure $web blob container using Azure CLI. I'm trying to do this because it's wrongly set and my service-worker.js (for my PWA) needs to have "application/javascript" instead of "text/plain; charset=utf-8" in order to be registered. 回答1: When using Azure cli, you should use az storage blob update. The sample code: az storage blob update --container-name xxx --name xxx --account-key xxx --account-name xxx --content-type

Azure Storage Static website error - Resource not found or content doesn't exist

若如初见. 提交于 2020-04-14 07:48:18
问题 To see how static websites work in Azure storage, I created a basic angular app and uploaded the files in dist folder to the static website. But when I try to access the URL, I get a 404 error message that says " The requested content doesn't exist ". Also, I can see that files are present under $web path, but when I click on the file URL <azurestorageurl>/$web/index.html the browser throws an error message " Resource not found ". . 回答1: The reason you're getting this error is because the ACL

Create Azure blob/fileshare container through ARM template

核能气质少年 提交于 2020-02-01 14:12:58
问题 I am looking a way to create a container in Azure blob & file-share storage through ARM template. At present I have ARM template to provision the storage accounts, but I want to create containers also in ARM. { "name": "[parameters('storageAccountName')]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "[variables('storageApiVersion')]", "sku": { "name": "[variables('storageAccountType')]" }, "dependsOn": [ ], "tags": { "Environment": "