File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,6 +324,18 @@ You can specify a new filename by passing it as the second parameter:
324324
325325.. literalinclude :: uploaded_files/017.php
326326
327+ By default, if the destination file already exists, a new filename will be used.
328+ For example, if **image_name.jpg ** already exists in the directory, then the
329+ filename will be **image_name_1.jpg **.
330+
331+ Overwriting Existing File
332+ -------------------------
333+
334+ You can overwrite the existing file by passing ``true ``
335+ as the third parameter:
336+
337+ .. literalinclude :: uploaded_files/022.php
338+
327339Check if the File Moved
328340-----------------------
329341
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ file ->move (WRITEPATH . 'uploads ' , null , true );
You can’t perform that action at this time.
0 commit comments