DavFile.ContentType Property

Namespace:
Weavy.Web.WebDAV
Assembly:
Weavy.Web.dll

Gets the media type of the file.

The mime-type provided by this property is returned in a Content-Type header with GET request.

When deciding which action to perform when downloading a file some WebDAV clients and browsers (such as Internet Explorer) rely on file extension, while others (such as Firefox) rely on Content-Type header returned by server. For identical behavior in all browsers and WebDAV clients your server must return a correct mime-type with a requested file.

public string ContentType { get; }

Property value

string