Allow normal user to upload.

This commit is contained in:
2025-07-10 15:10:56 +08:00
parent 747f76991d
commit dd5e5193da
14 changed files with 216 additions and 17 deletions

View File

@@ -4,6 +4,8 @@ interface MyWindow extends Window {
serverName?: string;
cloudflareTurnstileSiteKey?: string;
siteInfo?: string;
uploadPrompt?: string;
allowNormalUserUpload?: string;
}
class App {
@@ -17,6 +19,10 @@ class App {
siteInfo = "";
uploadPrompt = "";
allowNormalUserUpload = true;
constructor() {
this.init();
}
@@ -37,6 +43,8 @@ class App {
this.cloudflareTurnstileSiteKey = null; // Placeholder value, set to null if not configured
}
this.siteInfo = (window as MyWindow).siteInfo || "";
this.uploadPrompt = (window as MyWindow).uploadPrompt || "";
// this.allowNormalUserUpload = (window as MyWindow).allowNormalUserUpload === "true";
}
saveData() {