Question: Has anyone done this? If so, what tools/techniques/approaches did you use?

Is it possible to do with installing the SQL Business Studio Version of Visual Studio?

Thanks in advance!

Answer: 
You can do your renaming at this point in your code:

```
move_uploaded_file($tmp, $filelocation);

```

The `$filelocation` can be changed to whatever you want and the uploaded file will be renamed to that path.

**Edit**: The `S3::getHttpUploadPostParams` method always uses the file name from the upload to create the S3 resource. To change that you have to copy the method but change this line:

```
$params->key = $uriPrefix.'${filename}';

```

The `'${filename}` must be changed to a path of your choosing.
You can easily put this code.. 100 percent working.

```
<?php
$file=$_FILES['file']['name'];
$path ="upload/".$file;
$ext=pathinfo($path,PATHINFO_EXTENSION);
$name=pathinfo($path,PATHINFO_FILENAME);
if(file_exists($path))
{
    echo "File alredy exists .So name is changed automatically & moved";
    $path1="upload/";
    $new_name=$path1.$name.rand(1,500).".".$ext;
    move_uploaded_file($_FILES['file']['tmp_name'],$new_name);
}
else
{
echo"uploaded Sucessfully without any change";
move_uploaded_file($_FILES['file']['tmp_name'],$path);
}
?>

```