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

Upload photo > 1 Mo / Erreur sans message #59

Closed
camillemonchicourt opened this issue May 16, 2019 · 2 comments
Closed

Upload photo > 1 Mo / Erreur sans message #59

camillemonchicourt opened this issue May 16, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@camillemonchicourt
Copy link
Member

Quand on uploade une image supérieure à 1 Mo, le backoffice est en erreur mais sans l'indiquer à l'utilisateur.

La console indique :

polyfills.7037a817a5bb670ed2ca.js:1 POST http://xxxxxxx/api/addPhotos 413 (Request Entity Too Large)
main.5123fae288e7c554e7b2.js:1 err upload photo e {headers: t, status: 413, statusText: "Request Entity Too Large", url: "http://xxxxxx/api/addPhotos", ok: false, …}

C'est ce qui m'a amené à avoir des sites sans photo (#57). Au moment de sauvegarder le site était créé mais pas les photos que j'y avais associé car celles-ci faisait 1,4 Mo.

  • Il faudrait pouvoir uploader des images supérieures à 1 Mo
  • Si il y a une limite de taille (paramétrable ?), quand une photo la dépasse, il faut indiquer un message à l'utilisateur
  • Quid si on uploade plusieurs images d'un coup dont la somme est supérieure à la limite par photo ?
@camillemonchicourt camillemonchicourt added the bug Something isn't working label May 17, 2019
HamoudaAmine added a commit that referenced this issue Jul 23, 2019
@camillemonchicourt
Copy link
Member Author

Normalement corrigé par 95d45d6 qui passe la limite à 100 Mo.

@camillemonchicourt
Copy link
Member Author

Corrigé dans la version 1.0.0-rc.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant