1 Reply Latest reply on Aug 15, 2008 1:46 PM by Gregory Lafrance

    File upload with Flex

    ac361 Level 1
      [Sorry for the double post!! Tried to stop the post when I noticed the mangled formatting.]
      Hi. I'm building a Flex app that needs to do the following,

      1. Display a datagrid of records from a MySQL database. Each record will have an [Attach Image] button to allow users to upload a JPG/GIF/PNG file to associate with that record.
      2. Once user clicks the [Attach Image] button, a popup panel enables the user to search her/his machine for an image file and then click [Attach].
      3. If the image doesn't end in extension JPG/GIF/PNG, it stops and gives an error; else it proceeds to resize the image to 200px width (leaving the height free), and uses the record's ID to store the file on the server.
      4. It then displays a thumbnail of the image with the record with some text saying the operation was a success.

      Is this something that's possible with Flex? I'm a newbie to Flex and your thoughts and suggestions are very much appreciated. Any examples that do something similar? Thanks.