neko/tora POST data limit

107 views
Skip to first unread message

tom rhodes

unread,
May 5, 2015, 7:50:57 AM5/5/15
to haxe...@googlegroups.com
Hi.

I have something working locally using nginx with the hxfcgi script tora which when I try on a server that is running mod_neko fails uploading a 250kb zip. Giving the error...

Maximum POST data exceeded. Try using multipart encoding'

...which must mean there's a difference in how tora and mod_neko are handling the same code?

The neko on the server is 2.0.0, from a year ago more or less. Should I update to git? Will using mod_tora instead work for me with apache?

Is this an apache thing? Or a mod_neko thing?

Thanks.

Tom.

Nicolas Cannasse

unread,
May 5, 2015, 9:43:38 AM5/5/15
to haxe...@googlegroups.com
Le 05/05/2015 13:50, tom rhodes a écrit :
> Hi.
>
> I have something working locally using nginx with the hxfcgi script tora
> which when I try on a server that is running mod_neko fails uploading a
> 250kb zip. Giving the error...
>
> /Maximum POST data exceeded. Try using multipart encoding'/
> /
> /
> ...which must mean there's a difference in how tora and mod_neko are
> handling the same code?
>
> The neko on the server is 2.0.0, from a year ago more or less. Should I
> update to git? Will using mod_tora instead work for me with apache?
>
> Is this an apache thing? Or a mod_neko thing?

The limit should be the same for both tora and mod_neko, you can change
it with Apache configuration:

ModNeko POST_SIZE 1000000

Or use neko.Web.parseMultipart instead of getPostData

Best,
Nicolas


tom rhodes

unread,
May 5, 2015, 1:13:50 PM5/5/15
to haxe...@googlegroups.com
Hi Nicolas,

Thanks for that, over remoting is multipart possible?




--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
--- You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Nicolas Cannasse

unread,
May 5, 2015, 3:40:28 PM5/5/15
to haxe...@googlegroups.com
Le 05/05/2015 19:13, tom rhodes a écrit :
> Hi Nicolas,
>
> Thanks for that, over remoting is multipart possible?

Possible but not easy, it would require some additional code on both
client and server side.

Best,
Nicolas

Juraj Kirchheim

unread,
May 5, 2015, 5:55:47 PM5/5/15
to haxe...@googlegroups.com
You can send your serialized payload using multipart (and save it in a temporary file) and then follow up with a remoting request that will cause the file to be processed.

Best,
Juraj



Best,
Nicolas

tom rhodes

unread,
May 6, 2015, 3:34:29 AM5/6/15
to haxe...@googlegroups.com
Ok, thanks for the info, @Juraj, yup I think I'm going to split things up and save in a folder then as you say call a remoting method to process everything.

Cheers,

Tom.

Michel ROMECKI

unread,
May 12, 2015, 4:26:27 AM5/12/15
to haxe...@googlegroups.com
Hej,
I've added Multipart to Haxe remoting some mothes ago in a PR but it was not accepted as it and I haven't much time now to update/improve that. But you can see files here, maybe it can help :
https://github.com/HaxeFoundation/haxe/pull/3428


Le 05/05/2015 19:13, tom rhodes a écrit :
Reply all
Reply to author
Forward
0 new messages