Created
March 6, 2015 14:24
-
-
Save damianoporta/cdf03a9f4c73c3e52e7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function moveUploadedFile($file, $destination) | |
{ | |
if ($this->isUploadedFile($file)) { | |
return move_uploaded_file($file, $destination); | |
} | |
return rename($file, $destination); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment