Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect exceeded post_max_size on uploads #1812 #2079

Merged
merged 2 commits into from Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions i18n/translations/bg.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
25 changes: 13 additions & 12 deletions i18n/translations/ca.json
Expand Up @@ -37,7 +37,7 @@

"error.access.login": "Inici de sessió no vàlid",
"error.access.panel": "No tens permís per accedir al panell",
"error.access.view": "You are not allowed to access this part of the panel",
"error.access.view": "No tens accés a aquesta part del tauler",

"error.avatar.create.fail": "No s'ha pogut carregar la imatge del perfil",
"error.avatar.delete.fail": "La imatge del perfil no s'ha pogut eliminar",
Expand All @@ -52,7 +52,7 @@

"error.field.converter.invalid": "Convertidor no vàlid \"{converter}\"",

"error.file.changeName.empty": "The name must not be empty",
"error.file.changeName.empty": "El nom no pot estar buit",
"error.file.changeName.permission":
"No tens permís per canviar el nom de \"{filename}\"",
"error.file.duplicate": "Ja existeix un fitxer amb el nom \"{filename}\"",
Expand Down Expand Up @@ -413,16 +413,17 @@
"translation.name": "Catalan",

"upload": "Carregar",
"upload.error.cantMove": "The uploaded file could not be moved",
"upload.error.cantWrite": "Failed to write file to disk",
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
"upload.error.partial": "The uploaded file was only partially uploaded",
"upload.error.tmpDir": "Missing a temporary folder",
"upload.error.cantMove": "El fitxer carregat no s'ha pogut moure",
"upload.error.cantWrite": "No s'ha pogut escriure el fitxer al disc",
"upload.error.default": "No s'ha pogut carregar el fitxer",
"upload.error.extension": "La càrrega del fitxer s'ha aturat per l'extensió",
"upload.error.formSize": "El fitxer carregat supera la directiva MAX_FILE_SIZE especificada en el formulari",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "El fitxer carregat supera la directiva upload_max_filesize especifiada al php.ini",
"upload.error.noFile": "No s'ha carregat cap fitxer",
"upload.error.noFiles": "No s'ha penjat cap fitxer",
"upload.error.partial": "El fitxer carregat només s'ha carregat parcialment",
"upload.error.tmpDir": "Falta una carpeta temporal",
"upload.errors": "Error",
"upload.progress": "Carregant...",

Expand Down
1 change: 1 addition & 0 deletions i18n/translations/cs.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
33 changes: 17 additions & 16 deletions i18n/translations/da.json
Expand Up @@ -37,7 +37,7 @@

"error.access.login": "Ugyldigt log ind",
"error.access.panel": "Du har ikke adgang til panelet",
"error.access.view": "You are not allowed to access this part of the panel",
"error.access.view": "Du har ikke adgang til denne del af panelet",

"error.avatar.create.fail": "Profilbilledet kunne blev ikke uploadet ",
"error.avatar.delete.fail": "Profilbilledet kunne ikke slettes",
Expand All @@ -52,7 +52,7 @@

"error.field.converter.invalid": "Ugyldig converter \"{converter}\"",

"error.file.changeName.empty": "The name must not be empty",
"error.file.changeName.empty": "Navn kan ikke efterlades tomt",
"error.file.changeName.permission":
"Du har ikke tilladelse til at ændre navnet på filen \"{filename}\"",
"error.file.duplicate": "En fil med navnet \"{filename}\" eksisterer allerede",
Expand Down Expand Up @@ -184,9 +184,9 @@
"error.validation.contains":
"Indtast venligst en værdi der indeholder \"{needle}\"",
"error.validation.date": "Indtast venligst en gyldig dato",
"error.validation.date.after": "Please enter a date after {date}",
"error.validation.date.before": "Please enter a date before {date}",
"error.validation.date.between": "Please enter a date between {min} and {max}",
"error.validation.date.after": "Indtast venligst en dato efter {date}",
"error.validation.date.before": "Indtast venligst en dato før {date}",
"error.validation.date.between": "Indtast venligst en dato imellem {min} og {max}",
"error.validation.denied": "Venligst afvis",
"error.validation.different": "Værdien må ikke være \"{other}\"",
"error.validation.email": "Indtast venligst en gyldig email adresse",
Expand Down Expand Up @@ -266,7 +266,7 @@
"language.direction.ltr": "Venstre mod højre",
"language.direction.rtl": "Højre mod venstre",
"language.locale": "PHP locale string",
"language.locale.warning": "You are using a custom locale set up. Please modify it in the language file in /site/languages",
"language.locale.warning": "Du benytter en brugerdefineret sprogopsætning. Rediger venligst dette i sprogfilen i /site/languages",
"language.name": "Navn",
"language.updated": "Sproget er blevet opdateret",

Expand Down Expand Up @@ -413,16 +413,17 @@
"translation.name": "Dansk",

"upload": "Upload",
"upload.error.cantMove": "The uploaded file could not be moved",
"upload.error.cantWrite": "Failed to write file to disk",
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
"upload.error.partial": "The uploaded file was only partially uploaded",
"upload.error.tmpDir": "Missing a temporary folder",
"upload.error.cantMove": "Den uploadede fil kunne ikke flyttes",
"upload.error.cantWrite": "Kunne ikke skrive fil til disk",
"upload.error.default": "Filen kunne ikke uploades",
"upload.error.extension": "Upload af filen blev stoppet af dens type",
"upload.error.formSize": "Filen overskrider MAX_FILE_SIZE direktivet der er specificeret for formularen",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "FIlen overskrider upload_max_filesize direktivet i php.ini",
"upload.error.noFile": "Ingen fil blev uploadet",
"upload.error.noFiles": "Ingen filer blev uploadet",
"upload.error.partial": "Den uploadede fil blev kun delvist uploadet",
"upload.error.tmpDir": "Der mangler en midlertidig mappe",
"upload.errors": "Fejl",
"upload.progress": "Uploader...",

Expand Down
1 change: 1 addition & 0 deletions i18n/translations/de.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "Die Datei konnte nicht hochgeladen werden",
"upload.error.extension": "Der Dateiupload wurde durch eine Erweiterung verhindert",
"upload.error.formSize": "Die Datei ist größer als die MAX_FILE_SIZE Einstellung im Formular",
"upload.error.iniPostSize": "Die Datei ist größer als die post_max_size Einstellung in der php.ini",
"upload.error.iniSize": "Die Datei ist größer als die upload_max_filesize Einstellung in der php.ini",
"upload.error.noFile": "Es wurde keine Datei hochgeladen",
"upload.error.noFiles": "Es wurden keine Dateien hochgeladen",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/el.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/en.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/es_419.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/es_ES.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/fa.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/fi.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
27 changes: 14 additions & 13 deletions i18n/translations/fr.json
Expand Up @@ -37,9 +37,9 @@

"error.access.login": "Identifiant incorrect",
"error.access.panel": "Vous n’êtes pas autorisé à accéder au Panel",
"error.access.view": "You are not allowed to access this part of the panel",
"error.access.view": "Vous n’êtes pas autorisé à accéder à cette section du Panel",

"error.avatar.create.fail": "L’image du profil n’a pas pu être transférée",
"error.avatar.create.fail": "L’image du profil n’a pu être transférée",
"error.avatar.delete.fail": "L’image du profil n’a pu être supprimée",
"error.avatar.dimensions.invalid":
"Veuillez choisir une image de profil de largeur et hauteur inférieures à 3000 pixels",
Expand All @@ -52,7 +52,7 @@

"error.field.converter.invalid": "Convertisseur « {converter} » incorrect",

"error.file.changeName.empty": "The name must not be empty",
"error.file.changeName.empty": "Le nom ne peut être vide",
"error.file.changeName.permission":
"Vous n’êtes pas autorisé à modifier le nom de « {filename} »",
"error.file.duplicate": "Un fichier nommé « {filename} » existe déjà",
Expand Down Expand Up @@ -413,16 +413,17 @@
"translation.name": "Français",

"upload": "Transférer",
"upload.error.cantMove": "The uploaded file could not be moved",
"upload.error.cantWrite": "Failed to write file to disk",
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
"upload.error.partial": "The uploaded file was only partially uploaded",
"upload.error.tmpDir": "Missing a temporary folder",
"upload.error.cantMove": "Le fichier transféré n’a pu être déplacé",
"upload.error.cantWrite": "Le fichier n’a pu être écrit sur le disque",
"upload.error.default": "Le fichier n’a pu être transféré",
"upload.error.extension": "Le transfert de fichier a été stoppé par une extension",
"upload.error.formSize": "Le fichier transféré excède la directive MAX_FILE_SIZE spécifiée dans le formulaire",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "Le fichier transféré excède la directive MAX_FILE_SIZE spécifiée dans php.ini",
"upload.error.noFile": "Aucun fichier n’a été transféré",
"upload.error.noFiles": "Aucun fichier n’a été transféré",
"upload.error.partial": "Le fichier n’a été que partiellement transféré",
"upload.error.tmpDir": "Un dossier temporaire est manquant",
"upload.errors": "Erreur",
"upload.progress": "Transfert en cours…",

Expand Down
1 change: 1 addition & 0 deletions i18n/translations/hu.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/id.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/it.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/ko.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
25 changes: 13 additions & 12 deletions i18n/translations/lt.json
Expand Up @@ -37,7 +37,7 @@

"error.access.login": "Neteisingas prisijungimo vardas",
"error.access.panel": "Neturite teisės prisijungti prie valdymo pulto",
"error.access.view": "You are not allowed to access this part of the panel",
"error.access.view": "Neturite teisės peržiūrėti šios valdymo pulto dalies",

"error.avatar.create.fail": "Nepavyko įkelti profilio nuotraukos",
"error.avatar.delete.fail": "Nepavyko pašalinti profilio nuotraukos",
Expand All @@ -52,7 +52,7 @@

"error.field.converter.invalid": "Neteisingas konverteris \"{converter}\"",

"error.file.changeName.empty": "The name must not be empty",
"error.file.changeName.empty": "Pavadinimas negali būti tuščias",
"error.file.changeName.permission":
"Neturite teisės pakeisti failo pavadinimo \"{filename}\"",
"error.file.duplicate": "Failas su pavadinimu \"{filename}\" jau yra",
Expand Down Expand Up @@ -413,16 +413,17 @@
"translation.name": "Lietuvių",

"upload": "Įkelti",
"upload.error.cantMove": "The uploaded file could not be moved",
"upload.error.cantWrite": "Failed to write file to disk",
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
"upload.error.partial": "The uploaded file was only partially uploaded",
"upload.error.tmpDir": "Missing a temporary folder",
"upload.error.cantMove": "Įkeltas failas negali būti perkeltas",
"upload.error.cantWrite": "Nepavyko įrašyti failo į diską",
"upload.error.default": "Nepavyko įkelti failo",
"upload.error.extension": "Neįmanoma įkelti tokio tipo failo",
"upload.error.formSize": "Įkeltas failas viršija MAX_FILE_SIZE nustatymą, kuris buvo nurodytas formoje",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "Įkeltas failas viršija upload_max_filesize nustatymą faile php.ini",
"upload.error.noFile": "Failas nebuvo įkeltas",
"upload.error.noFiles": "Failai nebuvo įkelti",
"upload.error.partial": "Failas įkeltas tik iš dalies",
"upload.error.tmpDir": "Trūksta laikinojo katalogo",
"upload.errors": "Klaida",
"upload.progress": "Įkėlimas…",

Expand Down
1 change: 1 addition & 0 deletions i18n/translations/nb.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/nl.json
Expand Up @@ -418,6 +418,7 @@
"upload.error.default": "The file could not be uploaded",
"upload.error.extension": "File upload stopped by extension",
"upload.error.formSize": "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the form",
"upload.error.iniPostSize": "The uploaded file exceeds the post_max_size directive in php.ini",
"upload.error.iniSize": "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"upload.error.noFile": "No file was uploaded",
"upload.error.noFiles": "No files were uploaded",
Expand Down