We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b7c77 commit 8ce5b76Copy full SHA for 8ce5b76
2 files changed
.changes/fix-http-multipart-file-validation.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Fixes filesystem scope check when using the HTTP API to upload files.
core/tauri/src/endpoints/http.rs
@@ -103,7 +103,7 @@ impl Cmd {
103
} = value
104
{
105
if crate::api::file::SafePathBuf::new(path.clone()).is_err()
106
- || scopes.fs.is_allowed(&path)
+ || !scopes.fs.is_allowed(&path)
107
108
return Err(crate::Error::PathNotAllowed(path.clone()).into_anyhow());
109
}
0 commit comments