? No Code Attached Yet
avatar SemaphoreOxalis
SemaphoreOxalis
11 Aug 2021

Steps to reproduce the issue

Upload a PDF using media manager (every thing is set to allow it and you can see it in the media)
Create a repeat field using a media
Create an article using these repeat filed
Try to select the PDF

Expected result

You can select the PDF

Actual result

You can't select PDF

System information (as much as possible)

J3.10
PHP7.4

Additional comments

I know there is a loooot of others issue like this one #19954 #30548 #10871, each have been closed with no real answer. How can we build website a repeat forms with PDF uploading capacity (or other document field). We can hack the administrator/components/com_media/models/list.php and add PDF but it's not a solution and it' don't work with JCE media field override.

avatar SemaphoreOxalis SemaphoreOxalis - open - 11 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 11 Aug 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Aug 2021
avatar richard67
richard67 - comment - 11 Aug 2021

It has been solved in Joomla 4, not in 3.10.

avatar andrust
andrust - comment - 19 Sep 2021

I do experience this issue with 4.0.3 (27ffee6). Previously this was working with 4.0.0-beta7 (1360a9b)
I was using https://docs.joomla.org/Media_form_field_type in my own module, and also i used this as a custom field. Unfortunately I don't have the PHP knowledge to pinpoint some code. As above stated, there are lots of closed issues like this, without useful answers, and the suggested 'hacks' do not apply in J4, and even if it did, I think hacking the core code is not ideal.

avatar keyoftime
keyoftime - comment - 16 Jun 2022

I found Joomla 4 Media Field had a new attribute "types" to selected pdf. Sorry to my poor english.

<field
    name="imageurl"
    type="media"
    types="images,documents,audios,videos"
    label="COM_BANNERS_FIELD_IMAGE_LABEL"
    directory="images"
    hide_none="1"
/>
avatar zero-24 zero-24 - change - 16 Jun 2022
Title
[3.10] Still can't select other fomat than images in media field and particulary in repeat field
[4.1] Still can't select other fomat than images in media field and particulary in repeat field
avatar zero-24 zero-24 - edited - 16 Jun 2022
avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: ? No Code Attached Yet
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar Quy
Quy - comment - 10 Mar 2023

Closing as duplicate of #36252 which has additional info.

avatar Quy Quy - close - 10 Mar 2023
avatar Quy Quy - change - 10 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-10 19:54:52
Closed_By Quy

Add a Comment

Login with GitHub to post a comment