Return to Snippet

Revision: 5876
at April 10, 2008 10:45 by mswallace


Initial Code
<?php

$tempFile = $_FILES['Filedata']['tmp_name'];
$fileName = $_FILES['Filedata']['name'];
$fileSize = $_FILES['Filedata']['size'];

move_uploaded_file($tempFile, "./" . $fileName);

?>

Initial URL
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=5241&productId=2

Initial Description
got this as part of an example on the adobe cookbook site

Initial Title
PHP used with MXML Upload File Script

Initial Tags
php, file, Flex

Initial Language
PHP