Skip to content

Commit 0237294

Browse files
sjones-marathonidseefeld
authored andcommitted
Update to fix file path to remove ~ from media file path when using umbraco forms upload field.
1 parent 83ba5cb commit 0237294

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
@@ -797,6 +797,12 @@ private string FixPath(string path)
797797
path = path.Substring(appVirtualPath.Length);
798798
}
799799

800+
// Strip ~ before any others
801+
if (path.StartsWith("~", StringComparison.InvariantCultureIgnoreCase))
802+
{
803+
path = path.Substring(1);
804+
}
805+
800806
if (path.StartsWith(Delimiter))
801807
{
802808
path = path.Substring(1);

0 commit comments

Comments
 (0)