remove xtype
renamed video
use hardcoded mime type, don't rely on the uploaded one
removed the filename fileds
remove the comment and make the function private