Disallow uploading files directly to trash

This commit is contained in:
vineethvk11
2024-03-14 02:11:12 +05:30
parent 03d3ddbfa9
commit b2087f77fc

View File

@@ -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,