@@ -0,0 +1,5 @@
+---
+"tauri": patch
+
+Fixes filesystem scope check when using the HTTP API to upload files.
@@ -103,7 +103,7 @@ impl Cmd {
} = value
{
if crate::api::file::SafePathBuf::new(path.clone()).is_err()
- || scopes.fs.is_allowed(&path)
+ || !scopes.fs.is_allowed(&path)
return Err(crate::Error::PathNotAllowed(path.clone()).into_anyhow());
}