#6252 (Cannot upload a PDF file to froinde)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kokkuvõte
When end user tries to upload a file that is bigger than nginx's limit, Lino doesn't give them a meaningful error message.
The JS console only says
Uncaught TypeError: can't access property "focusInput", t is undefined
findHTMLInputElement LinoComponentUtils.jsx:344
focus LinoComponentUtils.jsx:361
onLeafMount NavigationControl.js:130
r LinoUtils.js:69
Children
Kommentaarid
- 1 aasta, 2 kuud ago by Luc Saffre about #6252 (Cannot upload a PDF file to froinde) : Great! Aha, there is a status code 413 for this!
- 1 aasta, 2 kuud ago by Sharif Mehedi about #6252 (Cannot upload a PDF file to froinde) : Now react shows a toast saying "File is too large! it exceeds the server upload limit"
- 1 aasta, 2 kuud ago by Luc Saffre about #6252 (Cannot upload a PDF file to froinde) : We now have max_body_size set to 5M on SW, so you should be able to reproduce it after next upgrade.
- 1 aasta, 2 kuud ago by Luc Saffre about #6252 (Cannot upload a PDF file to froinde) : Let's have a look at this together. Not very urgent.
- 1 aasta, 2 kuud ago by Luc Saffre about #6252 (Cannot upload a PDF file to froinde) : Yes, client_max_body_size is set to 15M in /etc/nginx/sites-available/froinde.conf, and I'll even leave it there ATM so that we have a test case. The only remaining issue is the lack of a proper error message.
- 1 aasta, 2 kuud ago by Luc Saffre about #6252 (Cannot upload a PDF file to froinde) : The file size is a bit over 50MB, and smaller file (50KB) uploads successfully. So I assume it is simply some limit. But there should be an error message saying that the file is too big.
- 1 aasta, 2 kuud ago by Luc Saffre about #6252 (Cannot upload a PDF file to froinde) : Created new Ticket #6252 (Cannot upload a PDf file to froinde).