Re: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty
Re: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty
- Subject: Re: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty
- From: Sergio Sánchez Maffet <email@hidden>
- Date: Fri, 18 Dec 2009 00:43:00 +0100
Thank you Timo and Mike,
I have to turn ajax off while submitting a file... no other solution
in this case for now...
A future solution would need to post the data to an iframe and then
send the data to the server... sounds complicated, but should work.
Thank you again for your fast responses.
--
Sergio
Am 17.12.2009 um 23:34 schrieb Mike Schrag:
it posts into an iframe
On Dec 17, 2009, at 5:21 PM, Sergio Sánchez Maffet wrote:
Timo, list,
I can't believe it... ;-)
Is there any solution known?
How does the AjaxFileUpload do the trick?
Thank you,
Sergio
Am 17.12.2009 um 23:07 schrieb Timo Hoepfner:
Hi Sergio,
a file upload is technically not possible with an Ajax request.
JavaScript cannot access the files on the file system, this is a
security restriction.
Timo
Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:
Dear list,
I'm using the latest WONDER build (from yesterday) and WO54.
Submitting a form using an AjaxSubmitButton with a WOFileUpload
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after
super.takeValuesFromRequest in the corresponding component.
All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context
id).
Do I miss something here? Any ideas?
Regards,
Sergio
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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