Jump to content

rename script in flash


EHUD

Recommended Posts

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);

  }

?>

Link to comment
https://forums.phpfreaks.com/topic/82824-rename-script-in-flash/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.