Issue Feature Closed

#38821Add signal to process public URL of file

Oliver Hader 07/09/12, 23:20 updated 10/23/17, 22:12

Description

By using the File Abstraction Layer (FAL), resources can be put to remote storages like Amazon S3 or WebDAV.
However, in those cases a protected URI (containing user credentials) is used for uploading which shall not be accessible for any user of course.
This change introduces the possibility to pre-process the public URL generation and allows i.e. to substitute by an alternative dispatcher URL.

Example for registering the slot:
@
$this->getSignalSlotDispatcher()->connect(
‘t3lib_file_Storage’,
t3lib_file_Storage::SIGNAL_PreGeneratePublicUrl,
‘Tx_MyExtension_HandlerSlot’,
‘preGeneratePublicUrl’
);
@

Reviews 1