ctrlcctrlv / infinity

A vichan fork permitting users to create their own boards
Other
318 stars 149 forks source link

Error: You didn't make a post. #223

Open icypants opened 10 years ago

icypants commented 10 years ago

I tried to upload a 9 MB .pdf file. After it completed, the page loaded for a generous while and then redirected me to an error page saying "You didn't make a post."

I can't tell if the post expired because of long upload time or if there was some other error

edit: oh also, I tried to upload it several times, but was unable to.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ampersham commented 10 years ago

I've had the same thing happen to me when trying to upload a 10 MB WebM.

My suspicion is that if a file is too large, 8chan just fucks up handling it instead of returning a message saying the file was too large.

ctrlcctrlv commented 10 years ago

Max is 8MB anyway.

ampersham commented 10 years ago

https://www.youtube.com/watch?v=dsmrSEkPpPc

I made a video showing what happens.

It's weird, when I see that error it makes me think there was a problem on the server. Can you confirm the problem is just that the file is too large?

ctrlcctrlv commented 10 years ago

Could be an ajax.js bug, I wonder if there's an error in the JS console? Perhaps ajax.js rose an error, then the browser tried to submit twice via the form's submit but ajax.js had already cleared the form?

"You didn't make a post." is caused by no POST data by the way. https://github.com/ctrlcctrlv/8chan/blob/master/post.php#L956

ampersham commented 10 years ago

Just to clarify, I get the "You didn't make a post." message even if I put some stuff in the text box; just tried that a few seconds ago.