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
"File path" and "Image file path" both refer to a gddOptions.extensions property, that is an array that "Limit which files can be chosen by the user". The problem I see with that is that Web APIs (and some OS as well) generally don't rely on DOS-style "file name extensions" for restricting user file selection. I feel that GDD should follow Web API standards and use an array of MIME-types and MIME-type globs for limiting file types to be selected and expect the implementation to work out how to filter on those MIME-types.
In the case of Web apps (1) and Python (2) its free, Electron-based apps (3) would have to use a MIME-type database like mime-types if not using the Web API, same for C# MimeTypesMap - however it should be possible to interrogate OS mime-type database as well: (4) and (5)
The text was updated successfully, but these errors were encountered:
While "File path" is of broader range (it can be anything) I would limit the "Image file path" to the most common image file types png, tiff, targa and maybe bmp or svg. If one needs something else he could use the standard "File path" with the corresponding mime type. That would make the implementation of a UI simpler when one only needs images.
"File path" and "Image file path" both refer to a
gddOptions.extensions
property, that is an array that "Limit which files can be chosen by the user". The problem I see with that is that Web APIs (and some OS as well) generally don't rely on DOS-style "file name extensions" for restricting user file selection. I feel that GDD should follow Web API standards and use an array of MIME-types and MIME-type globs for limiting file types to be selected and expect the implementation to work out how to filter on those MIME-types.In the case of Web apps (1) and Python (2) its free, Electron-based apps (3) would have to use a MIME-type database like mime-types if not using the Web API, same for C# MimeTypesMap - however it should be possible to interrogate OS mime-type database as well: (4) and (5)
The text was updated successfully, but these errors were encountered: