- updated max file size limit for file uploads by default;
This commit is contained in:
@@ -19,13 +19,14 @@ const Fileupload = ({
|
||||
infoText = null,
|
||||
accept = 'image/*',
|
||||
doctype = 'images',
|
||||
maxSize = 1000000,
|
||||
maxSize = 100000000,
|
||||
emptyText = __('Trascina qui il tuo file', 'gepafin'),
|
||||
chooseLabel = __('Aggiungi file', 'gepafin'),
|
||||
multiple = false,
|
||||
sourceId = 0,
|
||||
source = 'application',
|
||||
disabled = false
|
||||
disabled = false,
|
||||
maxFileSize = 100000000
|
||||
}) => {
|
||||
const [stateFieldData, setStateFieldData] = useState([]);
|
||||
const [acceptFormats, setAcceptFormats] = useState('');
|
||||
|
||||
@@ -19,6 +19,7 @@ const FileuploadAsync = ({
|
||||
infoText = null,
|
||||
accept = 'image/*',
|
||||
doctype = 'images',
|
||||
maxSize = 100000000,
|
||||
emptyText = __('Trascina qui il tuo file', 'gepafin'),
|
||||
chooseLabel = __('Aggiungi immagine', 'gepafin'),
|
||||
multiple = false,
|
||||
@@ -152,7 +153,7 @@ const FileuploadAsync = ({
|
||||
url={'/document/uploadFile'}
|
||||
multiple={multiple}
|
||||
accept={accept}
|
||||
maxFileSize={1000000}
|
||||
maxFileSize={maxSize}
|
||||
emptyTemplate={<p>{emptyText}</p>}
|
||||
chooseLabel={chooseLabel}
|
||||
cancelLabel={__('Cancella', 'gepafin')}
|
||||
|
||||
Reference in New Issue
Block a user