D
D
denism3002018-11-22 14:26:04
Joomla
denism300, 2018-11-22 14:26:04

How to select a directory outside of images in the media field?

The media field type has a directory parameter that allows you to specify the default selection directory.
At the same time, the specified directory must be in the images folder
. How can I specify a directory that is not in the images folder?
The same for the default parameter - how to set the default image that is not in the images folder?
And in addition: how to put several types in the accept parameter? For example, I only need gif and png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Gruznykh, 2018-11-22
@denism300

And how to specify a directory that is not in the images folder?

With the media field type, no way. As well as with the default parameter.
Try creating your own field type that can be set to any directory in the directory parameter.
Well, probably something like this: or:
<input accept="image/gif|image/png">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question