Can't Upload Videos with AJAX Image/File Manager

Hey guys, I have the Ajax Image/File Manager from PHP Letter.com, installed with TinyMCE. Image uploading works great. However’ I don’t understand why I can’t upload any video file.

I am getting two warning messages:

  1. No file has been selected for uploading.
  2. You are not allowed to upload such file type.

I am uploading valid video formats such as .WMV, .MOV, and Flash .FLV (Not sure is this one is valid). And of course, I am selecting videos to be uploaded.

Can anybody throw some light?
Thanks!

code in studio please …

I got it. The problem was that the default values of extension support only included image formats in the config.base.php file of the Ajax File/Image Manager.

This is the referenced line:

[php]define(‘CONFIG_UPLOAD_VALID_EXTS’, ‘gif,jpg,png,txt,mov,wmv,wma,swf,flv,mp3’); // [/php]

Also the default size value is only 51k for both images and media (ridiculously low). I changed these as well:
[php]define(‘CONFIG_UPLOAD_MAXSIZE’, 20971520); //by bytes[/php]

Again, these values can be modified locating the config.base.php file:
jscripts/tinymce/plugins/ajaxfilemanager/inc/config.base.php

I hope this can help someone down the line.
Take care.

Sponsor our Newsletter | Privacy Policy | Terms of Service