EHUD Posted December 22, 2007 Share Posted December 22, 2007 i have the following php file in order to load and download images. the script includes "rename". iand need to have a variable in flash which will send the new name of the image. can someone give me a flash actionscript scripy? <?php if (is_uploaded_file($_FILES['Filedata']['tmp_name'])) { $name = $_POST['name']; $uploadDirectory = "uploads/"; $uploadFile = $uploadDirectory . basename($_FILES['Filedata']['name']); copy($_FILES['Filedata']['tmp_name'], $uploadFile); $path_parts = pathinfo($uploadfile); $extension = $path_parts['extension']; $uploadFilename = $uploadDirectory . $name . $extension; rename($uploadFile, $uploadFilename); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/82824-rename-script-in-flash/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.