I'm not that familiar with "DynaFaces.fireAjaxTransaction" in detail,
but I can
tell you that the upload component has no inherent ajax support. It is
not a woodstock "widget".
Also note that a request that is a fileupload, must have the encoding
type of multipart form.
You need to make sure that the request header sent by the
XmlHttpRequest is using
the multipart form encoding. Please see the HTTP spec concerning
uploading files.
It is also not clear that the browser will perform exactly as it does
for a form submit
with a multipart form when using an XmlHttpRequest and a multipart form.
I have no reason to
think it will not behave the same, but you might want to search the web
for information
about using multipart form and HTTP requests.
-rick
Dipesh Patel wrote:
> Hello,
>
> i am using Woodstock Component 4.2 Build 1
>
> Friends i am Using FileUpload Component with
> DynaFaces.fireAjaxTransaction.
>
> i have a form in which i used fileupload component to get the picture
> of employee.
>
> so when i do not use ajax request the fileupload component works fine
> but when i use ajax request the fileupload.getUploadedFile() gives null.
>
> so is there any way to do it,
>
> please help me i am in urgent need of it.
>
> --
> Dipesh Patel
> Computer Engineer