[ 
https://issues.apache.org/jira/browse/TAP5-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057904#comment-13057904
 ] 

Peter Stavrinides commented on TAP5-638:
----------------------------------------

I think the greater issue here is exactly what Howard has mentioned:
"We don't yet have Forms and Zones working; XMLHttpRequest doesn't 
automatically handle the necessary MIME multipart/form-data content type."

Nevertheless is is entirely possible though, but in older browsers you need to 
encode the data yourself, which is perhaps not as trivial as it sounds, but 
possible.  If this underlying issue is fixed then there will be many more 
options available when using Forms and Zones, ajax upload is only one of 
them... I think this is worth the effort, it would be a major boon for 
Tapestry. At the moment using zones with forms is very limiting, and 
unnecessarily complicated.  

> Support for uploading files using AJAX
> --------------------------------------
>
>                 Key: TAP5-638
>                 URL: https://issues.apache.org/jira/browse/TAP5-638
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-upload
>            Reporter: Hugo Palma
>
> If the upload component is included on a form that does a partial update(has 
> the zone parameter set) the value property isn't updated with the 
> UploadedFile instance.
> So it seems that this component upload doesn't support ajax. It would be 
> great if it was possible to upload a file using AJAX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to