mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Show error toast when file size exceeds the limits (#27985)
As title. Before that, there was no alert at all. After: 
This commit is contained in:
		@@ -247,6 +247,10 @@ export function initGlobalDropzone() {
 | 
				
			|||||||
            });
 | 
					            });
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					        this.on('error', function (file, message) {
 | 
				
			||||||
 | 
					          showErrorToast(message);
 | 
				
			||||||
 | 
					          this.removeFile(file);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user