Author Topic: I have this problem: "Invalid file type: (flv,)" when i try to upload a file  (Read 7566 times)

0 Members and 1 Guest are viewing this topic.

Offline Cimmerio

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • Cartagena en Fotos
Hi,

First, i want to show you the content of my files:

Valid Extension Files
Code: [Select]
flv,wmv,avi,mp4,jpg,mov
includes/upload_definitions.php
Code: [Select]
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream", "video/flv", "video/x-flv");

templates/<your template>/media/flv.html
Code: [Select]
<!-- 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?




Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Cimmerio

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • Cartagena en Fotos
How can I add more allowed file extensions?

Thanks V@no. I read that post several times but I did not notice this:

In that case you must add an empty string:

Quote
$mime_type_match['flv'] = array("video/x-flv", "");

;)