Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5d4357806506478a293d5cc07843a37073067df3 1 parent 783a2ea
@boazrymland boazrymland authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  framework/web/CUploadedFile.php
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.