joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.77k stars 3.65k forks source link

Large file uploads (~1 GB+) do not start in Media Manager. #44326

Open 35grain opened 1 month ago

35grain commented 1 month ago

Steps to reproduce the issue

Attempt to upload a large file (approx. 1 GB or more) via Media Manager.

Expected result

A POST request is made and the file is successfully uploaded.

Actual result

The JavaScript FileReader API seems to fail resulting in no POST request being sent.

Related code: https://github.com/joomla/joomla-cms/blob/3804cb3b69dbd3696ff86819cc8d24386396a6b3/administrator/components/com_media/resources/scripts/components/upload/upload.vue#L44C5-L68C10

System information (as much as possible)

Joomla 4.4.9 (but as far as I understand, affects both 4 and 5). Firefox 131.0.3. The rest is irrelevant and related system configurations have been verified to work with alternative uploaders.

Additional comments

For those seeking for a working alternative for uploading large files for the time being, I suggest looking at JCE Editor Pro (File Browser) or similar.

Fedik commented 1 month ago

It probably will not work. Or you have to wait for some time. The Media Manager encode the file to base64, and for 1Gb it can take a while.

I think it is designed for relatively small files, and cannot handle really huge uploads. Which is sad.

dgrammatiko commented 1 month ago

It shouldn’t be a hard thing to implement transform streams for the conversion to base64: https://caniuse.com/mdn-api_transformstream