This is a code I am using in javascript I can;t upload video files it works fine for images. there is an image of files I get after trying to upload video files
var uploader = new plupload.Uploader({
// General settings
runtimes : 'silverlight,html4',
browse_button : 'pickfiles', // you can pass in id...
url : 'upload.php',
chunk_size : '1mb',
unique_names : true,
// Resize images on client-side if we can
resize : { width : 320, height : 240, quality : 90 },
filters : {
max_file_size : '10mb',
// Specify what files to browse for
mime_types : "image/*,application/zip,video/mp4"
},
flash_swf_url : '../js/Moxie.swf',
silverlight_xap_url : '../js/Moxie.xap',
// PreInit events, bound before the internal events
preinit : {
Init: function(up, info) {
log('[Init]', 'Info:', info, 'Features:', up.features);
},
UploadFile: function(up, file) {
log('[UploadFile]', file);
// You can override settings before the file is uploaded
// up.setOption('url', 'upload.php?id=' + file.id);
// up.setOption('multipart_params', {param1 : 'value1', param2 : 'value2'});
}
},
if you have any idea write anything you have in mind.
thanks in advance