create a new component or module and use a default joomla formfield with the type "media". See he media form field type provides modal access to the media manager for the choice of an image.
Make sure, that uploading PDF or XLS or other files then images are allowed in com_media: /administrator/index.php?option=com_media&folder= (click on options at the top right).
In the overlay, a user can select and upload the same file(types) as he can in /administrator/index.php?option=com_media (example: PDFs, XLS, ZIP):
Only image-types are allowed and seen in the overlay:
Joomla 3.9.19
See the doc: https://docs.joomla.org/Media_form_field_type. In the upper part of the text, it says: "he media form field type provides modal access to the media manager for the choice of an image. ". But the media-management also allows different file-types to upload. That depends on the configuration-settings for allowed file-extensions or mime-types.
The media-fieldtype should also make use of these settings, so Users can select PDF-Files for example.
See also these search-results:
(my internal Link: https://trello.com/c/yRl1I97D/com_media_upload_error)
Labels |
Added:
?
|
Title |
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-02 14:48:55 |
Closed_By | ⇒ | Quy |
@Quy Why was this ticket closed? It is NOT Solved. See #19954 (comment) -> There was a discussion, but that was also closed too early.
It seems issue-reports are getting closed far too early, without asking the author of the ticket, if the solution is ok for them.
Because still, this problem is not solved in any joomla-version. And no PR was ever accepted.
Addon: I was even able to upload a PDF in the modal overlay of the media-field, but it still shows not after uploading:
Btw: The one file you can see in this screenshot is a jpg.