At the moment, the g_content_type_guess() implementation in glib for
Windows is too limited to be useful.
static gchar *
get_mime_type_from_data (const gchar *uri, GError **error)
{
static gchar *
get_mime_type_from_data (const gchar *uri, GError **error)
{
GFile *file;
GFileInputStream *input_stream;
gssize size_read;
GFile *file;
GFileInputStream *input_stream;
gssize size_read;
mime_type = g_content_type_get_mime_type (content_type);
g_free (content_type);
return mime_type;
mime_type = g_content_type_get_mime_type (content_type);
g_free (content_type);
return mime_type;
+#else
+ /*
+ * On Windows, the implementation of g_content_type_guess() is too limited at the moment, so we do not
+ * use it and fall back to get_mime_type_from_uri()
+ */
+ return get_mime_type_from_uri (uri, error);
+#endif /* G_OS_WIN32 */