HOR-4432
This commit is contained in:
@@ -25931,6 +25931,12 @@ msgstr "The uploaded file exceeds the upload_max_filesize directive in php.ini"
|
|||||||
msgid "The file has not been attached because the extension is not allowed or because the content doesn't correspond."
|
msgid "The file has not been attached because the extension is not allowed or because the content doesn't correspond."
|
||||||
msgstr "The file has not been attached because the extension is not allowed or because the content doesn't correspond."
|
msgstr "The file has not been attached because the extension is not allowed or because the content doesn't correspond."
|
||||||
|
|
||||||
|
# TRANSLATION
|
||||||
|
# LABEL/ID_UPLOAD_INVALID_DOC_TYPE_FILE
|
||||||
|
#: LABEL/ID_UPLOAD_INVALID_DOC_TYPE_FILE
|
||||||
|
msgid "Invalid file format, please upload a file with one of the following formats {0}"
|
||||||
|
msgstr "Invalid file format, please upload a file with one of the following formats {0}"
|
||||||
|
|
||||||
# TRANSLATION
|
# TRANSLATION
|
||||||
# LABEL/ID_UPLOAD_ERR_NO_FILE
|
# LABEL/ID_UPLOAD_ERR_NO_FILE
|
||||||
#: LABEL/ID_UPLOAD_ERR_NO_FILE
|
#: LABEL/ID_UPLOAD_ERR_NO_FILE
|
||||||
|
|||||||
@@ -61219,6 +61219,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
|
|||||||
( 'LABEL','ID_UPLOAD_ERR_FORM_SIZE','en','The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form','2014-01-15') ,
|
( 'LABEL','ID_UPLOAD_ERR_FORM_SIZE','en','The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form','2014-01-15') ,
|
||||||
( 'LABEL','ID_UPLOAD_ERR_INI_SIZE','en','The uploaded file exceeds the upload_max_filesize directive in php.ini','2014-01-15') ,
|
( 'LABEL','ID_UPLOAD_ERR_INI_SIZE','en','The uploaded file exceeds the upload_max_filesize directive in php.ini','2014-01-15') ,
|
||||||
( 'LABEL','ID_UPLOAD_ERR_NOT_ALLOWED_EXTENSION','en','The file has not been attached because the extension is not allowed or because the content doesn''t correspond.','2014-10-21') ,
|
( 'LABEL','ID_UPLOAD_ERR_NOT_ALLOWED_EXTENSION','en','The file has not been attached because the extension is not allowed or because the content doesn''t correspond.','2014-10-21') ,
|
||||||
|
( 'LABEL','ID_UPLOAD_INVALID_DOC_TYPE_FILE','en','Invalid file format, please upload a file with one of the following formats {0}','2018-11-05') ,
|
||||||
( 'LABEL','ID_UPLOAD_ERR_NO_FILE','en','No file was uploaded','2014-01-15') ,
|
( 'LABEL','ID_UPLOAD_ERR_NO_FILE','en','No file was uploaded','2014-01-15') ,
|
||||||
( 'LABEL','ID_UPLOAD_ERR_NO_TMP_DIR','en','Missing a temporary folder','2014-01-15') ,
|
( 'LABEL','ID_UPLOAD_ERR_NO_TMP_DIR','en','Missing a temporary folder','2014-01-15') ,
|
||||||
( 'LABEL','ID_UPLOAD_ERR_PARTIAL','en','The uploaded file was only partially uploaded','2014-01-15') ,
|
( 'LABEL','ID_UPLOAD_ERR_PARTIAL','en','The uploaded file was only partially uploaded','2014-01-15') ,
|
||||||
|
|||||||
@@ -1124,7 +1124,7 @@ class Light
|
|||||||
return $result->status === false;
|
return $result->status === false;
|
||||||
})
|
})
|
||||||
->status(415)
|
->status(415)
|
||||||
->message(G::LoadTranslation('ID_UPLOAD_ERR_NOT_ALLOWED_EXTENSION'))
|
->message(G::LoadTranslation('ID_UPLOAD_INVALID_DOC_TYPE_FILE', [$inpDocTypeFile]))
|
||||||
->log(function($rule) {
|
->log(function($rule) {
|
||||||
Bootstrap::registerMonologPhpUploadExecution('phpUpload', 250, $rule->getMessage(), $rule->getData()->filename);
|
Bootstrap::registerMonologPhpUploadExecution('phpUpload', 250, $rule->getMessage(), $rule->getData()->filename);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user