Month's top: Whynotsignup00 with 28$
Want LAH to translate a manga for you?
Little Angels Hentai Forum Index
It's for you!
PLEASE LOG IN OR REGISTER TO BE ABLE TO SEE THE PICTURES AND ATTACHED FILES!
Uploading attachment too large gives "No post mode spec

 
Compose reply Little Angels Hentai Forum Index » Help and test-post forum View previous thread
View next thread
DMCA
Uploading attachment too large gives "No post mode spec
Author Message
bino-chan
Whitegold Angel
Warnings:
Posts: 285

Post Uploading attachment too large gives "No post mode spec Quote


_________________
FLASH COLLECTION
http://littleangelshentai.net/forum/viewtopic.php?p=172255

VIDEO/IMAGE RECOGNITION THREAD
http://littleangelshentai.net/forum/viewtopic.php?t=10621
Wed Oct 22, 2014 11:50 am Profile PM
ult_combo
Matrix Angel
Warnings:
Posts: 1235

Post Quote
Confirmed. Uploading an image larger than the upload size limit returns an error page with a misleading message.

I will most likely have some free time to investigate by the weekend.

Thanks for taking the time to write up a detailed issue report. Very Happy


_________________
My main MF acc was suspended, use other mirrors until I re-up it all to a new host.



There is no knowledge that is not power.
Our only limitations are those we set up in our own minds.
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
Measuring software productivity by lines of code is like measuring progress on an airplane by how much it weighs.
Programming is an art form, whose real value can only be appreciated by another versed in the same arcane art.
Thu Oct 23, 2014 1:15 am Profile PM MSN Skype
Anyien
The Legendary Loli Hunter
Warnings:
Posts: 2903

Post Quote
It only happens for files over 5Mb i believe, under that you will get the too big message.


_________________
You have the right to remain unconscious, anything you say won´t be much!
Mon Oct 27, 2014 2:00 pm Profile PM Skype
ult_combo
Matrix Angel
Warnings:
Posts: 1235

Post Quote
I haven't had enough free time yet, but I'll handle this as soon as possible.

Anyien:
It only happens for files over 5Mb i believe, under that you will get the too big message.
Thanks for the debugging help, Anyien.

As I first thought, this issue is most likely due to the server dropping the file upload due to it exceeding the server's POST/upload file size limit. As this happens at HTTP server level (before reaching the scripting logic), the script just thinks you didn't try to upload anything at all and results in that weird error message. I haven't had time to analyze the code yet, but given all the symptoms, this is the only plausible scenario.


_________________
My main MF acc was suspended, use other mirrors until I re-up it all to a new host.



There is no knowledge that is not power.
Our only limitations are those we set up in our own minds.
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
Measuring software productivity by lines of code is like measuring progress on an airplane by how much it weighs.
Programming is an art form, whose real value can only be appreciated by another versed in the same arcane art.
Tue Oct 28, 2014 11:10 am Profile PM MSN Skype
ult_combo
Matrix Angel
Warnings:
Posts: 1235

Post Quote
Fixed.
tl;dr: if you select a file larger than 2mb, you will immediately get a message and the selected file is discarded. See attachment below or try it yourself. Note that this requires JavaScript enabled and an up-to-date browser.

Long answer: when uploading a file larger than 5mb, your request's body will exceed the server's POST request size limit setting, thus not only the uploaded file but all the POST data is discarded before reaching the scripting logic.

This way, as the attachment upload is currently done through a regular POST request and the server discards all POST data when the request exceeds the maximum POST size, the scripting logic would not have the required data to rebuild the posting form page and thus the blank error screen you have seen previously.

Therefore, I've chose to apply a client-side check which (provided the user has a decently up-to-date browser with JavaScript enabled) should provide much faster feedback and prevent the user from getting that weird error page. Users with JS disabled may still get that error page when uploading files larger than 5mb, but this use case is not a priority as there isn't much that can be done server-side.

Changeset a7c3a9a05c60f1ffd75c1ff8257b78e9487149b8 Attach: prevent selecting files larger than 2mb; merge apprise into vendor


_________________
My main MF acc was suspended, use other mirrors until I re-up it all to a new host.



There is no knowledge that is not power.
Our only limitations are those we set up in our own minds.
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
Measuring software productivity by lines of code is like measuring progress on an airplane by how much it weighs.
Programming is an art form, whose real value can only be appreciated by another versed in the same arcane art.
Wed Oct 29, 2014 3:49 pm Profile PM MSN Skype
Senkousha
Golden Angel
Warnings:
Posts: 365

Post Quote
On a related note, when previewing your post, the uploaded images shows up in reverse order.

The first time I uploaded the images in the right order but the preview showed them in reverse order, so I canceled and uploaded manually in reverse order to get it right. And turns out it was the right order all along...


_________________
Disclaimer: Please take everything I say at face value.
Thu Nov 13, 2014 9:50 am Profile PM
Sat
Star Angel
Warnings:
Posts: 7535

Post Quote
Yeah, reverse was the normal order but I've reversed it because it makes more sense for us. The preview still shows it the old view. It's minor but thanks for noticing.


_________________

Some people say, the universe is a Star Ocean!

Want to donate to keep the site up? PM me for possible donation ways!
We now also accept Bitcoin.

Got a suggestion on how we can improve LAH? Post it here or vote for other people's suggestions!
Thu Nov 13, 2014 11:53 am Profile PM WWW Skype
Display posts from previous:    
Options Quick Reply
Show Smilies

 
Compose reply Quick reply Little Angels Hentai Forum Index » Help and test-post forum All times are GMT
Page 1 of 1

 
Jump to: 
You can post new threads in this forum
You can reply to threads in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Do not upload or mention any illegal content. Violators will be reported to the authorities. You are responsible for your uploads and actions.
If it is illegal for you to view adult lolikon material in your current location, leave this site immediately.
LAH is in compliance with DMCA.
LAH works best with JavaScript enabled. Enable it for a better experience. (´・ω・`)
Your browser is outdated and insecure! Please update your browser to fully enjoy LAH.