You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you add a file extension to the allowed uploads/assets but output {{ file.type }} it can return 'undefined'. I propose that the config setting for allowedFileExtensions and extraAllowedFileExtensions be in the format ['extension'=>'type', … ] where type is optional or make it an array of tuples [['ext','type'],['ext,'type']], whatever implementation you like for backwards compatibility.
perhaps this can be extended to include mimetypes too to add to Yii's getMimeTypeByExtension helper that it looks like Craft uses. (Which just maps pre-set values anyway)
The text was updated successfully, but these errors were encountered:
When you add a file extension to the allowed uploads/assets but output
{{ file.type }}
it can return 'undefined'. I propose that the config setting for allowedFileExtensions and extraAllowedFileExtensions be in the format['extension'=>'type', … ]
where type is optional or make it an array of tuples[['ext','type'],['ext,'type']]
, whatever implementation you like for backwards compatibility.for example…
perhaps this can be extended to include mimetypes too to add to Yii's getMimeTypeByExtension helper that it looks like Craft uses. (Which just maps pre-set values anyway)
The text was updated successfully, but these errors were encountered: