Ok. I was able to solve the problem creating a temporary  newFile:File
object and copying the content of the file I wanted to upload. Then, I
upload the newFile.

Thanks for the help.

Gilbert

--- In [email protected], "maximecowez" <[EMAIL PROTECTED]> wrote:
>
> The File() constructor does take a String as an argument, but it has
> to be formatted correctly. Take a look in the docs:
>
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/File.html#File()
> 
> Max
> 
> --- In [email protected], "gilbert_mizrahi" <mizrahi@> wrote:
> >
> > I found the error is caused because 
> > var fileToUpload:File = new File(path+"captureTest.flv");
> > is expecting a File object and not a String (path+"captureTest.flv").
> > 
> > The problem I have is that I have no idea what constitutes a File
> > Object. Using the File.browse the file selected passed an event and
> > the upload method can take thee File object as event.target, but again
> > I don't know how that object is made in case I want to create one
> > without using the browse method for File.
> > 
> > I traced the event.target, but it is giving me [Object,
> > FileReference].Hence I am clueless.
> > 
> > Gilbert
> > 
> > 
> > --- In [email protected], Tom Chiverton <tom.chiverton@>
> > wrote:
> > >
> > > On Monday 29 Sep 2008, gilbert_mizrahi wrote:
> > > > I am getting a I/O Error: Error #2038.
> > > 
> > > What's the full text and stack trace ?
> > > 
> > > -- 
> > > Tom Chiverton
> > > Helping to adaptively brand interfaces
> > > 
> > > 
> > > 
> > > ****************************************************
> > > 
> > > This email is sent for and on behalf of Halliwells LLP.
> > > 
> > > Halliwells LLP is a limited liability partnership registered in
> > England and Wales under registered number OC307980 whose registered
> > office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
> > Manchester, M3 3EB.  A list of members is available for inspection at
> > the registered office. Any reference to a partner in relation to
> > Halliwells LLP means a member of Halliwells LLP.  Regulated by The
> > Solicitors Regulation Authority.
> > > 
> > > CONFIDENTIALITY
> > > 
> > > This email is intended only for the use of the addressee named above
> > and may be confidential or legally privileged.  If you are not the
> > addressee you must not read it and must not use any information
> > contained in nor copy it nor inform any person other than Halliwells
> > LLP or the addressee of its existence or contents.  If you have
> > received this email in error please delete it and notify Halliwells
> > LLP IT Department on 0870 365 2500.
> > > 
> > > For more information about Halliwells LLP visit www.halliwells.com.
> > >
> >
>


Reply via email to