Skip to content

Commit dfb3959

Browse files
Update to fix file path to remove ~ from media file path when using umbraco forms upload field.
1 parent b4ad41e commit dfb3959

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,12 @@ private string FixPath(string path)
702702
path = path.Substring(appVirtualPath.Length);
703703
}
704704

705+
// Strip ~ before any others
706+
if (path.StartsWith("~", StringComparison.InvariantCultureIgnoreCase))
707+
{
708+
path = path.Substring(1);
709+
}
710+
705711
if (path.StartsWith(Delimiter))
706712
{
707713
path = path.Substring(1);

0 commit comments

Comments
 (0)