Project

General

Profile

Actions

Feature #37572

closed

File upload in BE: Rename file to lower case automatically

Added by Florian Seirer over 12 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2012-05-29
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Replacing special characters and spaces in the file name is already done automatically after uploading a file in the filelist module (don't know about DAM).

Why not also automatically rename file names and file extensions to lowercase?

Actions #1

Updated by Chris topher over 12 years ago

  • Status changed from New to Needs Feedback
  • TYPO3 Version changed from 4.5 to 6.0

Spaces are replaced, because I think they are not allowed in URLs and at least Internet Explorer has notorious problems with them. Umlauts are not necessarily changed. For better compatibility with browsers and file systems they only are onverted when $TYPO3_CONF_VARS['SYS']['UTF8filesystem'] is not set to "1". Else they are kept.

But why should file names be forced to be all lowercase? I don't see a reason to do that.

Actions #2

Updated by Florian Seirer over 12 years ago

It was kind of a workaround for #37575.
Also, I was doing some work to identify download links with CSS, and having to consider every possible notation of file extensions was a little annoying. But that's just me, maybe.

Still, you could make this optional (Install tool?).

Actions #3

Updated by Alexander Opitz about 11 years ago

  • Category set to File Abstraction Layer (FAL)

Maybe something could be integrated in the FAL

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to New
Actions #5

Updated by Philipp Gampe about 11 years ago

This is possible with an own FAL extension that makes use of the signals emmited during the procession of a file. See FAL_profile for an example:
https://github.com/ohader/fal_profile/blob/master/Classes/Bootstrap.php

Actions #6

Updated by Steffen Ritter about 11 years ago

  • Status changed from New to Rejected

I'm sorry, but rewriting everything to lower case does not make sense

Furthermore, as Philip pointed out, you may hook into FAL and do that yourself if really needed

Actions

Also available in: Atom PDF