Browse files

Update CUploadedFile.php

adding to documentation of 'saveAs()' a few words regarding the fact that it's overwriting existing files (if exists) without any questions asked
  • Loading branch information...
1 parent 783a2ea commit 5d4357806506478a293d5cc07843a37073067df3 @boazrymland boazrymland committed Mar 21, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 framework/web/CUploadedFile.php
@@ -183,6 +183,8 @@ public function __toString()
* Saves the uploaded file.
+ * Note: this method uses php's move_uploaded_file() method. As such, if the target file ($file)
+ * already exists it is overwritten.
* @param string $file the file path used to save the uploaded file
* @param boolean $deleteTempFile whether to delete the temporary file after saving.
* If true, you will not be able to save the uploaded file again in the current request.

0 comments on commit 5d43578

Please sign in to comment.