Azure blob에 파일을 업로드하는 새로운 프로세스가 생성되었습니다. 앱을 로컬에서 실행할 때 파일은 오류없이 업로드됩니다. 우리가 우리의 서버에 동일한 프로세스를 실행할 때, 우리는 오류 메시지가 :Azure Blob 저장소 업로드 오류 : (403) 금지됨
MESSAGE: Forbidden: header 'Content-Type' value denied SOURCE: Microsoft.WindowsAzure.StorageClient TARGETSITE: T get_Result() STACKTRACE: at Microsoft.WindowsAzure.StorageClient.Tasks.Task
1.get_Result() at Microsoft.WindowsAzure.StorageClient.Tasks.Task
1.ExecuteAndWait() at Microsoft.WindowsAzure.StorageClient.TaskImplHelper.ExecuteImpl(Func`1 impl) at Microsoft.WindowsAzure.StorageClient.CloudBlob.UploadFromStream(Stream source, BlobRequestOptions options) at Microsoft.WindowsAzure.StorageClient.CloudBlob.UploadFromStream(Stream source)Inner Exception:
MESSAGE: The remote server returned an error: (403) Forbidden.
SOURCE: System
TARGETSITE: System.Net.WebResponse EndGetResponse(System.IAsyncResult)
STACKTRACE: at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebRequest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender)
어떤 이상한 것은 그 여전히 푸른에 파일 업로드. 아무도 이것을 경험 한 적이 있습니까? 파일을 업로드 할 때 콘텐츠 유형을 설정하지 않습니다. 파일을 다운로드 할 때 설정합니다. 우리는 하나의 하드 코딩을 시도했지만 여전히 같은 오류가 발생했습니다.
아이디어를 확인하려면 다음을 고려해야합니다. 1) 공유 액세스 서명을 사용하고 있습니까? 업로드가 완료되기 전에 SAS가 시간 초과되는 상황을 보았습니다. 2) 클라우드와 dev 스토리지의 올바른 키를 잡아 가고 있습니까? –