ImgUpload CKEditor - Overwrites file
-
- Posts:1
ImgUpload CKEditor - Overwrites file
I love the extension ImgUpload for CKEditor, works great except there is no check for images/files named the same. I just overwrites the existing files. Are you planning on adding this feature?
Admin
Posts:805
Hi,
Thanks to your suggestion, I modified the script by adding the option to set to Rename filename or Overwrite existing file.
- By default, if the name of the uploaded file exists on server, it will be renamed with "filename_NR.ext" (NR is a number). If you want to Overwrite the existing file, set value of 0 to RENAME_F (line 9).
- You can Download the new version from the page with the script: https://coursesweb.net/php-mysql/ckedito ... -upload_s2
Thanks to your suggestion, I modified the script by adding the option to set to Rename filename or Overwrite existing file.
- By default, if the name of the uploaded file exists on server, it will be renamed with "filename_NR.ext" (NR is a number). If you want to Overwrite the existing file, set value of 0 to RENAME_F (line 9).
- You can Download the new version from the page with the script: https://coursesweb.net/php-mysql/ckedito ... -upload_s2
Similar Topics
- GET_id not working in UnLink (delete file)
PHP - MySQL First post
I searching for an hour for a solution; unlink seems not to work with GET idLast post
<?php
$id = (int) $_GET ;
echo $_GET ;
$file = fopen( '.$_GET...
Here is an answer `o god after 2 hours shame on me for this one`
<?php
$file_pointer = $_GET .'.txt';
if (!unlink($file_pointer)) {
echo (...