4
« on: August 21, 2009, 09:17:44 AM »
Hi,
First, i want to show you the content of my files:
Valid Extension Files
flv,wmv,avi,mp4,jpg,mov
includes/upload_definitions.php
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream", "video/flv", "video/x-flv");
templates/<your template>/media/flv.html
<!-- Template file for FLV files -->
<script type='text/javascript' src='./data/swfobject.js'></script>
<div id='preview'>This div will be replaced</div>
<script type='text/javascript'>
var s1 = new SWFObject('./data/player.swf','ply','725','408','9','#EDF5FB');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=./.{media_src}&backcolor=EDF5FB&frontcolor=000000&lightcolor=EDF5FB&screencolor=000000&bufferlength=6&autostart=false');
s1.write('preview');
</script>
I'm using the player "JW FLV Media Player 4.5" and is working fine.
THE PROBLEM
When i try to upload a *.flv file, the system return me the next message: "Invalid file type: (flv, )". Instead, when i upload a file by ftp, and check in the control panel for new images, the files appear.
Existing files are working properly, and the files uploaded by ftp too.
Can anyone help me with this problem?