mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FEATURE: Returning falsy value from upload handler stops upload. (#6969)
This commit is contained in:

committed by
Régis Hanol

parent
a342d2f150
commit
2c222e16fe
@ -786,7 +786,8 @@ class PluginApi {
|
||||
/**
|
||||
*
|
||||
* Registers a function to handle uploads for specified file types
|
||||
* The normal uploading functionality will be bypassed
|
||||
* The normal uploading functionality will be bypassed if function returns
|
||||
* a falsy value.
|
||||
* This only for uploads of individual files
|
||||
*
|
||||
* Example:
|
||||
|
Reference in New Issue
Block a user