Hi Friends of Ed , Advanced PHP for Flash had a good workaround on this.. The stickler is that form file uploads are of enctype "multipart/form-data" e.g <form enctype="multipart/form-data" action="_URL_" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="30000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form>
Whilst flash handles posted/get data as multipart/form-www-urlencoded (?) or something similar. The PHP version used a frameset. You could also use some html styled with CSS to look like your Flash movie... use a *user initiated* popup or an include on the same page as Flash. Sending a file thru Flash seems a bit heavy even if it could be done... You would have to copy the file into the downloaded Flash movie then send it to the server side script. Maybe a future verson of flash will handle multipart/form-data... To see how PHP handles this check out.. http://www.php.net/manual/en/features.file-upload.php Cheers James ---------- Original Message ----------- From: "Steve Onnis" <[EMAIL PROTECTED]> To: "Flash Developers List" <[EMAIL PROTECTED]> Sent: Thu, 18 Sep 2003 13:09:35 +1000 Subject: [fugli] Re: Uploading files thru flash and CFfile > there is a script on flashcfm.com which is basically a frameset type > sernario, but it works aparently > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Mark M > Sent: Thursday, September 18, 2003 12:56 PM > To: Flash Developers List > Subject: [fugli] Re: Uploading files thru flash and CFfile > > > Just wondering if anyone has done any stuff with uplaoding files thru > > flash forms with cffile backend etc. > > Unfortunately - not possible. > > Due to the specific form encoding needed on a cffile uploading, you won't be > able > to pass a filename through flash to a cfffile. > > The only way to do it is through some sort of series of hacks in which a cf > template is called to upload the file (somehow) in the background, or you > popup a > small cf page with a [browse] button. > > Maybe things have changed with MX2004... but I would be surprised. > > HTH > > Mark > > ----------------------------------- > [EMAIL PROTECTED] > ICQ: 3094740 > Safe From Bees > [www.safefrombees.com] > > --- > You are currently subscribed to fugli as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > > --- > You are currently subscribed to fugli as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ ------- End of Original Message ------- --- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
