-
Notifications
You must be signed in to change notification settings - Fork 7
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
413 nginx error fix #121
base: master
Are you sure you want to change the base?
413 nginx error fix #121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat voor max post size willen we op de server instellen? Op dit moment is het 2MB, lijkt me opzich geen slecht idee om een enigszins kleine bestandsgrootte in te stellen totdat we eventueel hebben ingesteld dat afbeeldingen die op pagina's worden geupload via summernote ook geresized worden.
Zou ook mooi zijn om de ze filehandler toe te voegen aan de summernote afbeeldinge upload.
@@ -18,6 +18,7 @@ | |||
"date" => "Invalid birth date", | |||
"error" => "Error", | |||
'bannedEmailDomain' => "Email addresses of educational institutions (student.tue.nl) are not allowed to make sure you can still receive our emails after you graduate", | |||
'fileToLarge' => 'Files is to large. The max size is 20mb', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is too large. The max size is 20MB.
@@ -18,6 +18,7 @@ | |||
"date" => "Geen geldige geboortedatum", | |||
"error" => "Error", | |||
'bannedEmailDomain' => "Email adressen van onderwijsinstellingen (student.tue.nl) zijn niet toegestaan om te voorkomen dat je onze mails niet meer ontvangt na je afstuderen", | |||
'fileToLarge' => 'Bestanden is te groot. Bestanden mogen maximaal 20mb zijn', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bestand is te groot.....
Laravel heeft ook de mogelijkheid om gewoon in de controller validation |
@wouterbles Je kan server side niet checken op file size omdat nginx er daarvoor al uitklapt. Daarom moet dit client side gebeuren |
Bij mij lokaal kan het iig, wel. Zou dat komen omdat ik xampp draai? Draai jij dat niet ook lokaal? |
Lokaal gebruik je apache die dit probleem niet heeft. Ik gebruik lokaal ook ngix waardoor ik het probleem wel heb |
Voordat dit gemerged kan worden, op de server staat nu 2 MB ingesteld, willen we dit verhogen, en zo ja naar wat? 20 MB lijkt me persoonlijk wel erg veel. Ook nog even naar mijn comments hierboven kijken ;) |
Codecov Report
@@ Coverage Diff @@
## master #121 +/- ##
=========================================
Coverage ? 24.42%
Complexity ? 577
=========================================
Files ? 81
Lines ? 2027
Branches ? 0
=========================================
Hits ? 495
Misses ? 1532
Partials ? 0
Continue to review full report at Codecov.
|
Dit gaat vooral toch om de thumbnail die bij een agenda item geupload word? hiervoor lijkt mij 10mb max voldoende. Het lijkt me dat sommige nog wel foto's die gemaakt zijn op cameras willen uploaden die vaak tussen de 8 en 10 mb liggen. |
10 lijkt me ook prima, dan moet het limiet ook even op de server worden ingesteld, anders heeft dit niet heel veel zin denk ik |
Bij nader inzien lijkt me het handig om de max_upload_size niet naar 10MB te zetten. Dit omdat ik tot nu toe bij de foto functie geen bestanden boven de 3MB heb gezien. (aangezien het nu op 2MB staat is dit de reden dat sommige foto's falen) Daarom heb ik in commit c252fb5 de downscale en resize functie uit de photoalbum javascript getrokken zodat het ook op andere plekken gebruikt kan worden. Lijkt jullie het dan wat om voor deze issue de thumbnail in de front end te downscalen? en vervolgens de max_upload_size naar 4/5MB zetten? |
Added validation for file size in agenda and niews iten create/edit screen. The max file size is 20 mb
#42