zxbodya / yii2-gallery-manager

93 stars 61 forks source link

Is it possible to have dynamic extensions? #91

Open mcki0127 opened 3 years ago

mcki0127 commented 3 years ago

Is there a way to have dynamic extensions in the configuration rather than hard-coding png or jpg? I need to handle both.

zxbodya commented 3 years ago

Currently it is not supported. The reason is that extension in from configuration is used for url generation.

It should be possible to add support for this. That likely to be not very big change, I think it might be something like:

mcki0127 commented 3 years ago

Ok, I might give it a go. I'm surprised this hasn't been requested already. Thanks for your response.

mcki0127 commented 3 years ago

Would you care to have a look at this and see if you might want to merge it? https://github.com/mcki0127/yii2-gallery-manager/commit/8b45dcc19824123aaa993a4c3992eaecfadcfab3