Development #13395
utiliser le data-max-file-size du champ fichier pour refuser au plus tôt la pose de fichiers trop gros
Début:
03 octobre 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
-
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 7 ans
- Sujet changé de poser un data-max-size sur les champs de type fichier pour refuser au plus tôt la pose de fichiers trop gros à utiliser le data-max-file-size du champ fichier pour refuser au plus tôt la pose de fichiers trop gros
En fait l'attribut est déjà posé; j'ai modifié le titre pour que ce ticket soit l'utilisation de l'info…
if self.max_file_size_bytes: # this could be used for client size validation of file size attrs['data-max-file-size'] = str(self.max_file_size_bytes)
Mis à jour par Frédéric Péters il y a plus de 4 ans
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-misc-check-file-size-before-upload-13395.patch 0001-misc-check-file-size-before-upload-13395.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-misc-check-file-size-before-upload-13395.patch 0001-misc-check-file-size-before-upload-13395.patch ajouté
En assurant que la zone d'erreur soit bien affichée.
Mis à jour par Serghei Mihai il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
- Assigné à mis à Frédéric Péters
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit dc0a00446c6e4f77d001f265d809820a473366db Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sat Mar 14 13:52:13 2020 +0100 misc: check file size before upload (#13395)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: check file size before upload (#13395)