Thanks but I'm having trouble reading the value...I'm doing the following:

For Each fileItem In UploadedFiles.Items
        Set streamFile = Server.CreateObject("ADODB.Stream")
        streamFile.Type = 1
        streamFile.Open
        StreamRequest.Position=fileItem.Start
        StreamRequest.CopyTo streamFile, fileItem.Length
        streamFile.SaveToFile path & fileItem.VAR1, 2
        streamFile.close
        Set streamFile = Nothing
        fileItem.Path = path & fileItem.VAR1 
Next

But its giving me an error

--- In [email protected], "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
> 
> Here is one way to do this. The receiving script or cgi will find the
> posted fields in the Fields collection of the Request object.  The
> function below is called after the fileRef.browse() method and after the
> user selected a file from the file dialog.
> 
> private function selectHandler(event : Event) : void
> {
>        var params:URLVariables = new URLVariables();
>         params.VAR1 = "Some Value";
>         params.VAR2 = "Another Value";
>         var request:URLRequest = new URLRequest("serverside_script"); 
> //asp, cfm, php, pl....
>         request.method = URLRequestMethod.POST;
>         request.data = params;
>         fileRef.upload(request);
> }
> 
> 
> --- In [email protected], "jd_lingwai" <jd_lingwai@> wrote:
> >
> > I noticed in flex it allows you to pass extra variables to the post
> > request.
> > Does anyone know how to name the new variables?
> >
>


Reply via email to