aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/siteadmin/commandline-upload.rst
diff options
context:
space:
mode:
authorBoris Bobrov <breton@cynicmansion.ru>2014-07-27 07:25:14 +0400
committerBoris Bobrov <breton@cynicmansion.ru>2015-02-16 13:41:09 +0300
commit54b4b28f84444a5b4e95eca0c2ca6429d52573c3 (patch)
treea9b93e8af396a5dfc150dfc2ee929885d5535935 /docs/source/siteadmin/commandline-upload.rst
parent067ee131885c2c3df88cb75e1c41a33d6681752f (diff)
downloadmediagoblin-54b4b28f84444a5b4e95eca0c2ca6429d52573c3.tar.lz
mediagoblin-54b4b28f84444a5b4e95eca0c2ca6429d52573c3.tar.xz
mediagoblin-54b4b28f84444a5b4e95eca0c2ca6429d52573c3.zip
Add new hook for two-step media type checking
Before uploaded media files were checked by extension. This led to situations when a plugin can support file with specific extension but doesn't due to lack of codecs, for example. Since the plugin reported that it supports uploaded file type, the upload was being declared successful, but transcoding failed. The failures were not easy to debug. The change adds a new hook that could allow two-step checking of the content. The result of the hook execution returns a tuple with media type name, manager and a callable sniffer, that can be used to perform probably expensive checks of the content. Also the change adds implementation of the hook for video.
Diffstat (limited to 'docs/source/siteadmin/commandline-upload.rst')
0 files changed, 0 insertions, 0 deletions