?
avatar brianteeman
brianteeman
11 Jan 2020

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.

avatar brianteeman brianteeman - open - 11 Jan 2020
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jan 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Jan 2020
avatar richard67
richard67 - comment - 11 Jan 2020

@brianteeman Do you think this is a release blocker? To me it seems it could be one.

avatar jwaisner
jwaisner - comment - 11 Jan 2020

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27477.

avatar HLeithner
HLeithner - comment - 11 Jan 2020

@bembelimen is this a regression of the tinymce 4.0 update? Can you have a look at this?

avatar infograf768
infograf768 - comment - 12 Jan 2020

Setting as release blocker

avatar infograf768 infograf768 - change - 12 Jan 2020
Labels Added: ?
avatar infograf768 infograf768 - labeled - 12 Jan 2020
avatar brianteeman
brianteeman - comment - 12 Jan 2020

Setting paste_data_images to false will prevent this happening but it still wont fix the non working joomla drag and drop plugin

avatar wilsonge wilsonge - change - 19 Jan 2020
Title
[4.0] Drag n Drop kills site
[4.0] Drag n Drop Images in TinyMCE kills site
avatar wilsonge wilsonge - edited - 19 Jan 2020
avatar bembelimen
bembelimen - comment - 11 Feb 2020

There are several reasons for this broken behavior:

avatar Fedik
Fedik - comment - 15 Feb 2020

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

avatar Fedik
Fedik - comment - 15 Feb 2020

ah, okay, I see

* Api Media Controller
*
* This is NO public api controller, it is internal for the com_media component only!
*

avatar Fedik
Fedik - comment - 15 Feb 2020

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 ?

avatar brianteeman
brianteeman - comment - 15 Feb 2020

Seriously - the all singing all dancing new media manager doesnt have an upload handler

rm -rf /com_media

npm i upploadjs.org

https://uppload.js.org

avatar Fedik
Fedik - comment - 15 Feb 2020

Seriously - the all singing all dancing new media manager doesnt have an upload handler

I had similar thoughts ?

avatar dgrammatiko
dgrammatiko - comment - 3 May 2020

I'll post a patch tomorrow

avatar dgrammatiko
dgrammatiko - comment - 6 May 2020

PR: #28928

avatar richard67
richard67 - comment - 6 May 2020

@dgrammatiko Shall I close this issue because there is PR #28928 ?

avatar dgrammatiko
dgrammatiko - comment - 6 May 2020

Yes?

avatar richard67
richard67 - comment - 6 May 2020

Closing as having PR, see above.

avatar richard67 richard67 - close - 6 May 2020
avatar richard67 richard67 - change - 6 May 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-05-06 07:57:15
Closed_By richard67
avatar wilsonge wilsonge - change - 18 Dec 2020
Labels Removed: ?
avatar wilsonge wilsonge - unlabeled - 18 Dec 2020

Add a Comment

Login with GitHub to post a comment