CreativeDream / php-uploader

PHP File Uploader is an easy to use, hi-performance File Upload Script which allows you to upload files to webserver
MIT License
94 stars 51 forks source link

Option to not overwrite existing files #2

Closed primehalo closed 8 years ago

primehalo commented 8 years ago

I think it would be useful to have an option which would automatically rename a file being uploaded if a file of the same name already exists, such as appending " (1)" to the file name.

CreativeDream commented 8 years ago

good ideea

CreativeDream commented 8 years ago

@primehalo will be fixed in version 2.0.

It will work like this: 'replace' => false to get files as filename (1).extension

Thanks for ideea.

CreativeDream commented 8 years ago

@primehalo fixed https://github.com/CreativeDream/php-uploader 0.3