mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-20 07:02:09 +08:00
increase upload limit via browser
This commit is contained in:
parent
24eff93d9a
commit
406aaf7c14
@ -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
|
||||
|
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user