How can i Upload Files from my Flex 2.0 Application?

How can i do a Upload File funtionality with Flex 2.0? Do i
have to make the component? How is the code in Flex/ Action Script
to make this possible?. I'm new in this Flex world and it seems to
me very interesting to make RIA's Applications; in fact i'm making
a little Employees Application for my company and i'm trying this
technology and of course i need the functionality that i asking
for.
Regards.
Andres.

I haven't tried this, but I believe what you could do is
append
requestHeaders to the urlrequest object that you pass into
the file.upload()
method. The requestHeaders is an array of name/value pairs
that would be
included with your post. At least in theory, I believe that
shoudl work.
Good luck.
Phil
"tantalo" <[email protected]> wrote in
message
news:e3q3mt$138$[email protected]..
> Hi. Phil, how i commented in the forum the examples
works ok, with a
> little
> changes to make a file Upload. Now i have another doubt,
i need to make a
> submit of a form with another fields and the file
selected.
>
> I made a HHTP Service for that purpose with the tags
Requests like:
>
> <mx:HTTPService id="empleadoRequest"
> url="
http://andresbarrios:8080/directorio/empleados/insertarEmpleado.jsp"
> useProxy="false" method="POST">
> <mx:request xmlns="">
>
<empresa>{empresa.selectedItem.data}</empresa>
>
<ubicacion>{ubicacion.selectedItem.data}</ubicacion>
>
<departamento>{departamento.selectedItem.data}</departamento>
> <cedula>{cedula.text}</cedula>
> <nombre>{nombre.text}</nombre>
> <apellido>{apellido.text}</apellido>
> <!--Falta Fecha de Nacimiento -->
> <sexo>{sexo.selectedItem.data}</sexo>
>
<estado_civil>{estado_civil.selectedItem.data}</estado_civil>
>
<telefono_celular>{telefono_celular.text}</telefono_celular>
> <extension>{extension.text}</extension>
>
<correo_electronico>{correo_electronico.text}</correo_electronico>
> </mx:request>
> </mx:HTTPService>
> I have the global variable called "file" that contains
the file selected.
> I
> want to send this file variable in the HHTPservice call
EmpleadoRequest,
> can i
> do that with a Request tag like another field? or the
only way is trougth:
> file.upload(upload.cfm) ?;
>
> I want only make a one call to the server to submit the
fields of the form
> and
> to upload the file at th e same time can you help me How
can i do that?
>
> Thanks.
>
> Regards.
>
> Andres.
>
>
>

Similar Messages

  • How can i upload files from one ip address to another  ip address machine ?

    how can i upload files from one ip address to another ip address machine ?

    i need to copy files from one client m/c to server m/c like sftp
    please suggest solution on this

  • In KE13N How can I Upload files

    In KE13N How can I Upload files ? , Other than file should be in which format?

    Hi
    You need to first save file description from the planning layout.
    You need to go to transaction KEPM open the planning method. It will open in excel format provided you layout is excel integrated . In the menu there will be a option to format setting do this, save the excel sheet in the desktop.
    Once you do format settings and there will be a menu appearing as save file description click on this. After this you can update the excel file downloaded to your desktop and upload through transaction KE13N.
    Anand

  • How can i upload music from my ipod to my macbook air?

    hi, how can i upload music from my ipod to my macbook air? thanks.

    Try this.
    Open iTunes and select edit/preferences/advanced/general. Put a check mark in the box marked "copy files to iTunes music folder when adding to library" and also "keep iTunes music folder organized", then click 'ok'.
    Connect the iPod whilst holding down the shift/ctrl keys to prevent any auto sync, and if you see the dialogue window asking if you want to sync to this itunes library, click 'no'.
    Then go to file/add folder, open 'my computer', select your iPod and click 'ok'.
    The music files should transfer to your iTunes.
    However it appears that no playlists or any other info such as ratings/last played etc will transfer.
    If this is important to you, you may want to use other options.
    There's Yamipod. This is a free program that transfers music and playlists etc from iPod to iTunes.

  • How can i open file from adobe reader..i already have adobe read

    how can i open file from adobe reader..i already have adobe reader installed and cannot open a
    file and i cannot convert my file into pdf..

    Is the file really a PDF? Where is it? Have you tried opening it from within Reader?

  • Where can I find the Start up disk and how can I delete file from it.

    where can I find the Start up disk on theMac Book Air?
    How can I delete files from it?

    The startup disk is the internal SSD in your MBA.  You may delete files by draging the file  to Trash (or clicking on them and then execute COMMAND+Delete).  Then empty Trash.
    Ciao.

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

  • How can I transfer files from one external HD (WD My Passport) to another external HD (Seagate Backup Plus)?  WD drive was improperly ejected and Finder no longer recognizes it.  Tried fixing with Disk Utility but failed.

    How can I transfer files from one external HD (WD My Passport 2T) to another external HD (Seagate Backup Plus 2T)?  WD drive was improperly ejected (although we did tell it to eject) and now Finder no longer recognizes it.   Using MacBook Pro and I just upgraded to Yosemite before this happened. Was told at Apple Store to use Disk Utility to repartition, but it failed.  It says to backup files and restore.  But how do I backup files?  Or would appreciate any other suggestions to repair drive.

    You may drag & drop between external hds. 
    Should you run into trouble.
    Take the exernal drive appart.  Take out the harddrive.  Try reading the data via a usb adapter. Put a household finan on the hd.
    http://www.cablewholesale.com/products/usb-firewire/usb-2.0-products/product-40u   2-01000.php?utm_source=Nextag&utm_medium=cpc&zmam=54972865&zmas=1&zmac=4&zmap=4 4 77

  • How can i transfer files from adobe reader to my kobo e-book

    how can i transfer files from adobe reader to my kobo e-book??

    I think you should ask in the Digital Editions forum,
    http://forums.adobe.com/community/adobe_digital_editions
    This is the Reader one.

  • How can I transfer files from my computer to my I pad ?

    How can I transfer files from my computer to my I Pad?

    Try a conduit such as Dropbox.
    Goodreader or Documents to Go also have helper apps that allow transfers.
    Goodreader is particularly good in that it has a integal file tree and you can mount your computers harddrive and navigate directly on your ipad.
    Use the open with to view/move files into other apps.

  • How can I transfer files from my mac to my iPad, e.g., mp4 files.  Do I have to use iTunes?

    How can I transfer files from my mac to my iPad in an easier way?  I'd like to put some movies on, and I can use iTunes, but is there another way?  I have transferred epub books using Dropbox.  Movies eat up a lot of dropbox space and the iPad has trouble getting them.

    USB disk. You still have to go through iTunes.
    Connect device to computer/mac
    Select your device in iTunes menu.
    Apps...
    At thebottom of the page you will see the app.
    Select it and the Add for windows and + for mac
    Hope that helped.
    In the long run there is no way to access or uplood data on your device without iTunes unless you JailBrake....

  • How can I restore files from my old iMac to this new purchased MacBook Air? I am using time machine backup in my old imac.

    How can I restore files from my old iMac to this new purchased MacBook Air? I am using time machine backup in my old imac.

    Hi,
    Try Target Disk Mode
    OS X Yosemite: Transfer files between two computers using target disk mode
    There is also Migration Assistant.
    OS X Yosemite: Transfer your info from a computer or storage device

  • How can I transfer files from Apps to the PC in iTunes 11.1.3.8

    How can I transfer files from Apps to thr PA in iTunes 11.1.3.8
    (App :eBooks from Bluefire Reader)

    Connect the device to iTunes.
    Select the Apps tab.
    Select the apps desired to sync.
    Sync.
    iTunes remembers sync settings per device.

  • How can I transfer files from my 2007 iMac to my new MacBook Pro?

    How can I transfer files from my 2007 iMac to my new MacBook Pro?  It cannot be does over wi-fi as my old computer is too old.  Please advise!

    Use a Thunderbolt to Ethernet or FireWire adapter.
    (95019)

Maybe you are looking for

  • How can I find a list of printers that will work with my iBook version=2.2?

    I need to print out a book I wrote on my old iBook...got rid of my Epson Stylus 62 and can't find a list on the iBook that says what other printers it will take. I have access to an old Dell 922 and am wondering if that can be hooked up and used to g

  • How to print long Text & No of page settings in F-58

    Dear Gurus, Can anybody guide me reg. below: 01. user want to print long text also along with document. 02. When user printing F-58 Payment advice..where we can set no of pages Pls guide me. REgards, Venkat

  • EJB compilation and deployment problems

    Dear fellows I have good understanding of EJB development process, but the compilation and deployment process of EJB is very problematic for me. Please write me the complete steps which should include: 1. Starting from class, interface programs creat

  • JSP and JavaMail

    I have this Javamail program that I know works and I'm trying to put it into JSP. Since I'm still new to JSP, I can't figure out why I'm getting this error: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main

  • Bdoc task M - Function like in SQL?

    Hi, can anyone tell me, what the bdoc task M = modify does? Does it act like the SQL task on a database? If for example a bupa_rel has task M and should change a relationship that does not exist, would it create a new one? Best Regards Chris Edited b