You are here

function ResourcePublicStreamWrapper::mime in D7 Media 6

Return the mime type of a file.

Overrides ResourceStreamWrapper::mime

File

resource/ResourcePublicStreamWrapper.inc, line 46

Class

ResourcePublicStreamWrapper
public:// stream wrapper class.

Code

function mime($url) {
  return file_get_mimetype(basename($url));
}