I'm developing a file uploader implementation that is hosted on an Azure App Service .Net Core 3.1 App. When running locally all works fine, however when deployed to azure, the Uploader rejects uploads, and reports
"Access to the path "[UploadLocation]:\test.txt" is denied due to insufficient permissions. Please make sure the current windows identity "IIS APPPOOL\EX-FileUpload20230508125922 (Impersonation)" has the required permissions on the path.
I'm not sure why the the service would be looking to do impersonation here.
The FileUploader class config is here
var fileUploader = new FileUploader
{
Width = 600,
Height = 300,
Resizable = false,
UploadLocation = new GleamTech.FileSystems.Physical.PhysicalLocation
{
Path = @"\\adtdatacapture1.file.core.windows.net\pendingfiles",
UserName = "adtdatacapture1",
Password = _keyFileStorage
}
}
fileUploader.Uploaded += evnt_FileUploader_Uploaded;
Are there any examples of folks successfully hosting the component in an app service.
N.B, if an UploadLocation that points to the local file storage of the app service e.g. "~/App_Data/Uploads" then the upload is completed successfully.