diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-14 08:42:15 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-14 08:42:15 -0700 |
| commit | 406aaf7c147cd9d68e0e0a5ee4405958f84aa066 (patch) | |
| tree | 7bce7d3eed489beacd72e72b1e32797d6ba65d69 | |
| parent | 24eff93d9a71f54668856e53e9f4214bd91f107e (diff) | |
| download | seaweedfs-406aaf7c147cd9d68e0e0a5ee4405958f84aa066.tar.xz seaweedfs-406aaf7c147cd9d68e0e0a5ee4405958f84aa066.zip | |
increase upload limit via browser
| -rw-r--r-- | weed/admin/handlers/file_browser_handlers.go | 2 | ||||
| -rw-r--r-- | weed/admin/static/js/admin.js | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/weed/admin/handlers/file_browser_handlers.go b/weed/admin/handlers/file_browser_handlers.go index c8e117041..c644cc942 100644 --- a/weed/admin/handlers/file_browser_handlers.go +++ b/weed/admin/handlers/file_browser_handlers.go @@ -220,7 +220,7 @@ func (h *FileBrowserHandlers) UploadFile(c *gin.Context) { } // Parse multipart form - err := c.Request.ParseMultipartForm(100 << 20) // 100MB max memory + err := c.Request.ParseMultipartForm(1 << 30) // 1GB max memory for large file uploads if err != nil { c.JSON(http.StatusBadRequest, gin.H{"error": "Failed to parse multipart form: " + err.Error()}) return diff --git a/weed/admin/static/js/admin.js b/weed/admin/static/js/admin.js index 2049652cd..1758cde82 100644 --- a/weed/admin/static/js/admin.js +++ b/weed/admin/static/js/admin.js @@ -1173,13 +1173,7 @@ async function submitUploadFile() { return; } - // Validate individual file sizes - const maxIndividualSize = 100 * 1024 * 1024; // 100MB per file - const oversizedFiles = files.filter(file => file.size > maxIndividualSize); - if (oversizedFiles.length > 0) { - showErrorMessage(`Some files exceed 100MB limit: ${oversizedFiles.map(f => f.name).join(', ')}`); - return; - } + // Individual file size validation removed - no limit per file const formData = new FormData(); files.forEach(file => { |
