mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-09 07:25:34 +00:00
Disallow uploading files directly to trash
This commit is contained in:
1 parent
03d3ddbfa9
commit
b2087f77fc
1 file changed
+5
@@ -2891,6 +2891,11 @@ window.upload_items = async function(items, dest_path){
|
||||
let upload_progress_window;
|
||||
let opid;
|
||||
|
||||
if(dest_path == trash_path){
|
||||
UIAlert('Uploading to trash is not allowed!');
|
||||
return;
|
||||
}
|
||||
|
||||
puter.fs.upload(
|
||||
// what to upload
|
||||
items,
|
||||
|
||||
Reference in new issue
Block a user