Re: grabbing data from a POST
Re: grabbing data from a POST
- Subject: Re: grabbing data from a POST
- From: Stefan Klein <email@hidden>
- Date: Fri, 09 May 2008 09:26:27 +0200
Hi,
what did you see using:
NSLog.debug.appendln("headers: " + request().headers());
NSLog.debug.appendln("keys: " + request().formValueKeys());
NSLog.debug.appendln("values: " + request().formValues());
Stefan
Joshua Paul schrieb:
That's just it, when I do that I get a NPE.
If I grab this.request().content() and write it to disk, I can see
that the data is there (Content-Disposition, etc.).
Other thoughts?
On May 9, 2008, at 12:16 AM, Stefan Klein wrote:
Hi,
you can use request().formValueForKey("Filedata") in your DirectAction
Stefan
Joshua Paul schrieb:
I have data coming into my app via a POST in a DirectAction. I can
obtain the data via:
(WOInputStreamData) this.request().content()
But that's where I'm stumped. Once I've grabbed the raw data, how
can I extract the form information/data from it?
Content-Disposition: form-data; name="Filedata";
filename="image.jpg"
Content-Type: application/octet-stream
ˇÿˇ‡JFIF†€€Cˇ¿ˇƒ
TIA.
--
Josh Paul
email@hidden
twitter: joshpaul
linkedin: joshpaul
NOTICE: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain
legally privileged and confidential information. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution,
copying, or other use of this message or its attachments is strictly
prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please
delete it from your computer.
_______________________________________________
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
--
Josh Paul
email@hidden
twitter: joshpaul
linkedin: joshpaul
NOTICE: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain
legally privileged and confidential information. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution, copying, or
other use of this message or its attachments is strictly prohibited.
If you have received this message in error, please notify the sender
immediately by replying to this message and please delete it from your
computer.
_______________________________________________
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