Feature No Code Attached Yet
avatar micker
micker
7 Dec 2021

Steps to reproduce the issue

1 create a media field
2 try to upload an mp3

Expected result

display a audio player with mp3

Actual result

we can't upload an mp3
but we didn't have restriction media is more large than an image ?

avatar micker micker - open - 7 Dec 2021
avatar joomla-cms-bot joomla-cms-bot - change - 7 Dec 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Dec 2021
avatar dgrammatiko
dgrammatiko - comment - 7 Dec 2021

It works for the other types, you need to add in the xml something like type=“docs,audios,videos,images” iirc

avatar micker
micker - comment - 8 Dec 2021

i try to find option in field administration but nothing
you recommanded to override a core file ... ?
thanks for your reply @dgrammatiko

avatar dgrammatiko
dgrammatiko - comment - 8 Dec 2021

i try to find option in field administration but nothing

This is controlled from the developer. If they choose to use only the images then ask them to change their code.
BTW is this about custom fields?

avatar micker
micker - comment - 8 Dec 2021

is for display an audio file (mp3) with player
it can be so simple with a media field ?

avatar dgrammatiko
dgrammatiko - comment - 8 Dec 2021

Custom field Media afaik is not updated yet to support the other types

avatar micker
micker - comment - 8 Dec 2021

dommage !

avatar dgrammatiko
dgrammatiko - comment - 8 Dec 2021

If this is your request here then change the title to [Request] Custom Field Media support for docs,audios,videos

@bembelimen this should be fixed in 4.1, it's an easy one: add one more field (as multiple select) for type and in the layout some code to switch between 4 different types (images,docs,audios,videos).

avatar micker micker - change - 8 Dec 2021
Title
[4] media field only works for image
[4 Request] Custom Field Media support for docs,audios,videos
avatar micker micker - edited - 8 Dec 2021
avatar LukasHH
LukasHH - comment - 9 Dec 2021

i have here a custom field for other media files. https://github.com/LukasHH/plg_field_file

avatar micker
micker - comment - 13 Jan 2022

@LukasHH cool adding ! no way to propose it in core ? to much change ?

avatar LukasHH
LukasHH - comment - 15 Jan 2022

We have just discovered that this no longer works with the update to version 4.0.5.

The same applies to the Media field when it is in an XML form. The types specification is ignored.

Otherwise, it can be included in the core if desired.

avatar micker
micker - comment - 15 Jan 2022

Ahh dommage i realy think that a media field need to be use for media not only for field lol

avatar LukasHH
LukasHH - comment - 15 Jan 2022

The media field is part of accessiblemedia. In 4.0, types (comma separated types of files for Media Manager) was added. I use the field for the custom field.

Since the specification of types is ignored, I will open an Issiu for it.

avatar LukasHH
LukasHH - comment - 15 Jan 2022

No Stop ignore my 2 last comments.
The error is in front of the screen.

I had installed the JCE editor and its media manager replaced the one from Joomla core. If I switch off the one used by the core, then everything works.

avatar dgrammatiko
dgrammatiko - comment - 15 Jan 2022

Yeah JCE is replacing both the media field and the media manager, which probably is not what most people should expect for Joomla 4...

avatar LukasHH
LukasHH - comment - 15 Jan 2022

Yes, exactly - when you install the JCE, the configuration of the JCE automatically sets it to use its file browser instead of the media manager from the core. You have to switch this off and then it works.
image

avatar dgrammatiko
dgrammatiko - comment - 15 Jan 2022

@LukasHH The core tinyMCE is in feature parity with JCE so may I ask why you installed JCE?

avatar LukasHH
LukasHH - comment - 15 Jan 2022

This was in a local test installation and had no particular reason. Yesterday I was approached by someone that it wasn't working for them. That's the reason we came up with it. Today I found out that the JCE setting is causing it.

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar QuyTon QuyTon - change - 26 Feb 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-02-26 14:59:12
Closed_By QuyTon
Labels Added: Feature
Removed: ?
avatar QuyTon QuyTon - close - 26 Feb 2025
avatar QuyTon
QuyTon - comment - 26 Feb 2025

Please test PR #45013.

Add a Comment

Login with GitHub to post a comment