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
You can select the PDF
You can't select PDF
J3.10
PHP7.4
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.
Labels |
Added:
?
|
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.
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"
/>
Title |
|
Labels |
Added:
?
No Code Attached Yet
Removed: ? |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-03-10 19:54:52 |
Closed_By | ⇒ | Quy |
It has been solved in Joomla 4, not in 3.10.