Bug #66348

Renaming on upload problem

Added by Michal Cygankiewicz over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-04-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When uploading file which already exists TYPO3 adds extra number at the end of filename.

So if uploaded file name is name.jpg and such filename already exists - TYPO3 will rename uploaded to name_01.jpg, name_02.jpg etc...

The above is fine but:

If uploaded file name is for example name_72.jpg and such filename already exists - TYPO3 will rename uploaded file to name_01.jpg, name_02.jpg, ..., name_71.jpg, name_73.jpg... It should rather rename to name_72_01.jpg, name_72_02.jpg...

#1

Updated by Benni Mack over 5 years ago

  • Status changed from New to Rejected

Well, introducing a logic that detects whether TYPO3 renamed a file that exists or it was renamed, is quite complex. We now introduced another way for uploading files and dealing with conflicts in TYPO3 CMS 7.4 / master. Please have a look here.

If you have any further questions, feel free to contact me or check via Slack on https://forger.typo3.org/slack

Also available in: Atom PDF