mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-07 05:30:31 -06:00
Disallow uploading files directly to trash
This commit is contained in:
@@ -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