You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#109050 Ignored mediatype attribute in joomla 4.0.3

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by nineloops on Wednesday, 20 October 2021 15:21 BST

nineloops
Hi, I'm using JCE Editor (pro) with joomla 4.0.3. I often use the mediajce field to upload documents, video and audio files, in custom extensions. On joomla 4 the mediatype attribute is ignored, I can upload/select images only. I also tried JCE Pro version 2.9.17 Beta 5 but the problem persists.

<field
    name="data_sheet"
    type="mediajce"
    preview="false"
    label="Data sheet"
    mediatype="files"
/>
Thank you.

Ryan
This is working correctly in my tests, using the xml you posted above.

Have you made any changes to the Permitted File Extensions for the File Browser in Editor Profiles -> Plugin Parameters -> File Browser?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

nineloops
You're right, I think we've found the problem. By disabling the "Direct Upload" option, the url attribute of the media field is not correctly overwritten and it point to
index.php?option=com_jce&task=mediafield.display&fieldid={field_id}&mediatype=images

Ryan
Please try JCE Pro 2.9.17 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

nineloops
[quotePost id="109151"]Please try JCE Pro 2.9.17 Beta -