Re: DirectAction with multipart/form-data does not get multiple parameters
Re: DirectAction with multipart/form-data does not get multiple parameters
- Subject: Re: DirectAction with multipart/form-data does not get multiple parameters
- From: Aaron Rosenzweig <email@hidden>
- Date: Mon, 24 Mar 2014 09:20:49 -0400
You need to read the docs on WOFileUpload but here is a rough example:
upload : WOFileUpload { filePath = fileName; bufferSize = 2000; size = 20; outputStream = byteArray; }
// variables for the data displayed on screen, submitted into the form public String fileName; public ByteArrayOutputStream byteArray = new ByteArrayOutputStream(1024*1024);
I think “filePath” is somehow mandatory even if you don’t use it.
Basically you are dealing with a component that has been extended over the years (by Apple) that has grown up and worked around some problems in the early days of the web. In the original HTML 1.0 days I think you really only could have 1 image and it must be last. But with a newer parser and some more maturity, it is possible to stream any number of large binary files and in any order if you “stream” them. That’s about the best I can do for a brief answer that is not entirely factual but relatively close to the truth.
On Mar 24, 2014, at 9:09 AM, Daniele Corti < email@hidden> wrote: Thank You Aaron! As you said, the Image must be the last paraments in request, I simply change the parameters order and the datas are correctly passed.
Just, one thing: you said "To get around that you can use the streaming api.". Do you have a link to docs or to examples of usage for Streaming API?
I've tried to google it or search on wocommunity portal, but I haven't found what are you talking about...
Thank You! Daniele
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden