prasathmani / tinyfilemanager

Single-file PHP file manager, browser and manage your files efficiently and easily with tinyfilemanager
https://tinyfilemanager.github.io
GNU General Public License v3.0
4.88k stars 1.66k forks source link

Upload from URL overwrites existing file while normal upload renames file #1143

Closed RavanH closed 6 months ago

RavanH commented 7 months ago

Hi,

When doing a normal Upload file and a file with the same name already exists, then the new file will get a unique name suffix to prevent the old file from being overwritten. But when going through Upload from URL, this does not happen. The original file will get overwritten without any warning.

This might need a bit more thought...

  1. Make the behavior coherent between the two upload methods
  2. Maybe add a config option to allow switching between rename and replace?
prasathmani commented 7 months ago

check this out #1133