Well not exactly kills it but it will do eventually
In Joomla 3 a drag and drop image plugin was added so that you could add images to your content more easily and the images would be saved automatically in a specified folder on your server.
In Joomla 4 that isnt working at all
Instead the native tinymce drag and drop image is used. This is a problem because this saves the image as a base64 blob in the database. Obviously this is not desirable as a user uploading a large image will see it take a long time to save the article and very quickly the database will get huge. It is also really slow to render an image this way.
Labels |
Added:
?
|
I would say this is a release blocker. We definitely don't want to impact DB performance as well as size if it is being loaded this way.
@bembelimen is this a regression of the tinymce 4.0 update? Can you have a look at this?
Setting as release blocker
Labels |
Added:
?
|
Setting paste_data_images to false will prevent this happening but it still wont fix the non working joomla drag and drop plugin
Title |
|
There are several reasons for this broken behavior:
okau, I have tried to do something, but I "hit a wall"
does com_media API designed to be used by other extensions or?
if so, can someone explain how to, please
I have spend a couple hours for reverse engendering of this "thing", and only got much of negative feedback
It turns out, more easy to write an own upload handler (server side) than use com_media API.
I managed to make upload work, but in response I have path path: "local-0:/blabla-image.jpg"
, and it not possible to add in to TinyMCE as is, because it not a real path.
Any tips are welcome
ah, okay, I see
To be able to fix this issue someone need to write an upload handler.
Or we just copy old one? https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_media/controllers/file.json.php
Seriously - the all singing all dancing new media manager doesnt have an upload handler
rm -rf /com_media
npm i upploadjs.org
Seriously - the all singing all dancing new media manager doesnt have an upload handler
I had similar thoughts
I'll post a patch tomorrow
@dgrammatiko Shall I close this issue because there is PR #28928 ?
Yes
Closing as having PR, see above.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-05-06 07:57:15 |
Closed_By | ⇒ | richard67 |
Labels |
Removed:
?
|
@brianteeman Do you think this is a release blocker? To me it seems it could be one.