You are here

function ResourceStreamWrapper::mime in D7 Media 6

Return the mime type of a resource.

Parameters

$url: Stream wrapper resource url.

Return value

string

Overrides ResourceStreamWrapperInterface::mime

1 method overrides ResourceStreamWrapper::mime()
ResourcePublicStreamWrapper::mime in resource/ResourcePublicStreamWrapper.inc
Return the mime type of a file.

File

resource/ResourceStreamWrapper.inc, line 86

Class

ResourceStreamWrapper
A base class for Resource Stream Wrappers.

Code

function mime($url) {
  return 'application/octet-stream';
}