Bug #45397
closedRTE images stored in root
0%
Description
When I'm adding image-tags directly to RTE (e. g. <img src="fileadmin/user_upload/image.jpg" />), the images are recreated with RTE with new filename and in the TYPO3 root directory (e. g. 944578820c.jpg). In the install tool, the image storage directory is set like this: "[BE][RTE_imageStorageDir] = uploads/". But I can't find any image in the folder "uploads", they are all stored in the root. What is going wrong?
Updated by Patrick Broens almost 12 years ago
- Category set to RTE (rtehtmlarea + ckeditor)
- Status changed from New to Needs Feedback
- Target version set to 6.0.2
- Complexity set to medium
Hi,
Correct me if I'm wrong; You're saying you are adding img tags in the HTML source code, by clicking the "toggle text mode" button first and then adding the img tag, right? You are not inserting the images by using the image button to insert an image.
Updated by Marc Bastian Heinrichs almost 12 years ago
I can confim this. If you add images via the image button in RTE the images ( RTEmagicC_* ) are also saved in Website root and not in ./uploads.
Updated by Marc Bastian Heinrichs almost 12 years ago
If you add the image via RTE and activate the rte html source view, you see src="http://{domain}/./RTEmagicC_dfsdf" in the image tag. The "uploads" is missing.
I also debugged function TYPO3\CMS\Core\Html\RteHtmlParser::TS_images_db and it seems that in the following snippet also $magicFolderPath does not contain the "uploads" path.
if ($magicFolder instanceof \TYPO3\CMS\Core\Resource\Folder) { $magicFolderPath = $magicFolder->getPublicUrl(); $pathPre = $magicFolderPath . 'RTEmagicC_'; if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($path, $pathPre)) {
Updated by C. Weilguny over 11 years ago
I can confirm this. If you insert an image in the RTE you get an error because the magic images are saved to the webroot directory which is usually not writeable. In regular content you can help yourself using the Text & Images element. For content of extensions which only use an RTE for the bodytext (like tt_news) it's a show stopper. There you can't insert images. Disabling the magic images by
RTE.default.buttons.image.options.removeItems = magic
helps temporarily, but is not a real solution.
Updated by Benni Mack over 11 years ago
- Status changed from Needs Feedback to Resolved
- Priority changed from Should have to Must have
- Target version changed from 6.0.2 to 6.0.5
Now solved with this one: https://review.typo3.org/#/c/19224/ - please review.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed