dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: client wants users to be able to upload pictures?

  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    79

    client wants users to be able to upload pictures?

    Hi fellow flashers,

    I hope im posting in the right place.

    Im doing a site for a new indie band. They want their fans to be able to upload pictures ? Any idea on how this would be best acheived?

    its going to be in a ' fans section ' of the site.

    they said they would even be cool with receiving an email from the site with fans images as an attachment , but how can I keep this within the site interface i.e. how can I have a form that enables the user to attach a picture which later gets emailed to the bands inbox, for them to then update a fanspage.xml file with the new images.

    I hope that makes sense....

    would appreciate some advice on this?

    thanks in advance,

    suzi

  2. #2
    Just Loitering
    Join Date
    Sep 2000
    Location
    England
    Posts
    215
    how do you currently send emails from online forms and what server side scripting do you have available to you?

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    79
    thanks for the reply baileys,

    I create forms using flash / php. I also use xml with flash.

    But not sure what I would need to do to enable this fans page feature?

    any idea?

    as I said previously, the band would be happy with:

    the user is on the site and goes to the fans page, where he/she gets a form to fill in with an attach image. This then gets emailed to the bands inbox , where they would later amend the fanspage.xml file with the new image.

    thanks in advance

    suzi x

  4. #4
    Just Loitering
    Join Date
    Sep 2000
    Location
    England
    Posts
    215
    well for the emailing part you need to allow the form to upload a file which in html is done adding an enctype="multipart/form-data" attribute to the form tag. Not sure how it works in flash but I'd assume something similar.

    Then for the emailing part you've got two choices. One is to use the advanced PHP mailer which is explained on Sitepoint at http://www.sitepoint.com/article/advanced-email-php

    alternatively you can use a PHP function - move_uploaded_file() to grab the file and then use the class PHP Mailer to email the attachment - http://phpmailer.sourceforge.net/

    Both of these work however I find the PHP Mailer is easier to use and I've recently found the odd problem with the Sitepoint method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center