March 15th, 2010, 08:58 AM
Join Date: Mar 2010
Time spent in forums: 6 m 28 sec
Reputation Power: 0
Basic conversion from PHP to ColdFusion
Hi, I know this should be really really simple but for some reason I can't seem to work it out.
I'm using the browse and upload file snippet from developphp.com and want to convert to ColdFusion but can't seem to get it going.
This is the php code..
Script Written By: Adam Khoury @ www.developphp.com
// Set local PHP vars from the POST vars sent from flash
$todayDate = $_POST['todayDate'];
$Name = $_POST['Name'];
$Email = $_POST['Email'];
$filename = $_FILES['Filedata']['name'];
$filetmpname = $_FILES['Filedata']['tmp_name'];
$fileType = $_FILES["Filedata"]["type"];
$fileSizeMB = ($_FILES["Filedata"]["size"] / 1024 / 1000);
// Place file on server, into the images folder
and the ColdFusion one is ...
destination="C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\cfw-audioeye\AS3_File_Upload\" nameconflict="makeunique" >
The data is coming from a Flash form but as I know zip all about Flash have no idea what the variable(s) are called so figured could just convert the code to PHP but is not working.
Does anyone have any ideas please please please?