codeguy/Upload — pull request #21 by cs475x (2013-05-09 12:47:25+00:00)
Title: Restore functionality of setName

Check for a string when calling `upload()` & set the name if the `$newName` parameter is a string, otherwise leave it be.
Current behavior:

```php
$file->setName("foo"); // Set the image name to "foo"
$file->upload(); // Upload the image
$file->getName(); // Returns an empty string
```

Fixed behavior:

```php
$file->setName("foo"); // Set the image name to "foo"
$file->upload(); // Upload the image
$file->getName(); // Returns "foo" as expected
```