Project

General

Profile

Actions

Feature #23244

closed

Add hook to postprocess filelist operations

Added by Xavier Perseguers over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-07-21
Due date:
% Done:

0%

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

Description

A hook is missing to allow postprocessing of filelist operations.

Typical use-case:

- Allow editors to upload any picture (e.g., 10 Mpixels) as they don't know how to resize the pictures or do not have the software (cybercafe during holidays)
- Prevent fileadmin to be overflooded with huge pictures which will never be used in their original size

=> Automatically resize "huge" pictures after the upload

Attached is an example class implementing this process. It should be activated with:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_extfilefunc.php']['processDataAction'][] = 'EXT:your_ext/class.user_t3lib_extfilefunc_hook.php:user_t3lib_extfilefunc_hook';
(issue imported from #M15192)


Files

15192.diff (897 Bytes) 15192.diff Administrator Admin, 2010-07-21 14:21
15192_v2.diff (4.14 KB) 15192_v2.diff Administrator Admin, 2010-07-21 15:47
class.user_t3lib_extfilefunc_hook.php (1.77 KB) class.user_t3lib_extfilefunc_hook.php Administrator Admin, 2010-07-21 15:48

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #23260: Add hook to postprocess upload of a fileClosedXavier Perseguers2010-07-24

Actions
Actions #1

Updated by Xavier Perseguers over 14 years ago

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_extfilefunc.php']['processData'][] = 'EXT:your_ext/class.user_t3lib_extfilefunc_hook.php:user_t3lib_extfilefunc_hook';

Actions #2

Updated by Xavier Perseguers over 14 years ago

Committed to trunk (rev. 8251)

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF