Author Topic: Flv file Error.  (Read 5219 times)

0 Members and 1 Guest are viewing this topic.

Offline mripra

  • Pre-Newbie
  • Posts: 1
    • View Profile
Flv file Error.
« on: May 19, 2009, 03:00:05 PM »
I have read all the topic related to this error and i did all thing as they asked.
Quote
http://www.4homepages.de/forum/index.php?topic=23885.0
http://www.4homepages.de/forum/index.php?topic=7277.0

But im still getting this error.
I have also installed the plug in for the valid file extension.
I am getting following error message.
Code: [Select]
Error uploading image file: MVI_0265.flv
MVI_0265.flv: Invalid file type (flv, )

No database entry!
below is my upload_definitions.php
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: upload_definitions.php                               *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.7                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die(
"Security violation");
}

$mime_type_match['jpg'] = array("image/jpg""image/jpeg""image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpg""image/jpeg""image/pjpeg");

$mime_type_match['gif'] = array("image/gif");

$mime_type_match['png'] = array("image/png""image/x-png");

$mime_type_match['tif'] = array("image/tiff""application/octet-stream");
$mime_type_match['tiff'] = array("image/tiff""application/octet-stream");

$mime_type_match['bmp'] = array("image/bmp""image/x-ms-bmp");

$mime_type_match['aif'] = array("audio/x-aiff");

$mime_type_match['aiff'] = array("audio/x-aiff");

$mime_type_match['au'] = array("audio/basic");

$mime_type_match['snd'] = array("audio/basic");

$mime_type_match['mid'] = array("audio/x-midi""audio/mid""audio/midi");

$mime_type_match['mp3'] = array("audio/mpeg""audio/x-mpeg""audio/mp3""audio/mpg");

$mime_type_match['ra'] = array("audio/x-pn-realaudio");

$mime_type_match['ram'] = array("audio/x-pn-realaudio");

$mime_type_match['rm'] = array("audio/vnd.rn-realmedia""application/vnd.rn-realmedia""video/vnd.rn-realvideo""application/vnd");

$mime_type_match['rpm'] = array("audio/x-pn-realaudio-plugin");

$mime_type_match['wav'] = array("audio/x-wav");

$mime_type_match['avi'] = array("video/x-msvideo""video/avi");

$mime_type_match['mpg'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpe'] = array("video/mpeg");

$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['qt'] = array("video/quicktime");

$mime_type_match['swf'] = array("application/x-shockwave-flash");

$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['fla'] = array("application/octet-stream");

$mime_type_match['gz'] = array("application/gzip""application/x-gzip-compressed");
$mime_type_match['rar'] = array("application/x-rar-compressed");
$mime_type_match['tar'] = array("application/x-tar");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['zip'] = array("application/zip""application/x-zip-compressed");
$mime_type_match['sit'] = array("application/x-stuffit");

$mime_type_match['pdf'] = array("application/pdf""application/x-pdf");

$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['ps'] = array("application/postscript");

$mime_type_match['txt'] = array("text/plain""text/richtext""text/rtf""text/html");
$mime_type_match['rtf'] = array("text/plain""text/richtext""text/rtf");
$mime_type_match['rtx'] = array("text/plain""text/richtext""text/rtf");

$mime_type_match['doc'] = array("application/msword");
$mime_type_match['xls'] = array("application/vnd""application/x-msexcel");
$mime_type_match['ppt'] = array("application/vnd");

$mime_type_match['csv'] = array("text/comma-separated-values");
$mime_type_match['js'] = array("text/javascript");
$mime_type_match['css'] = array("text/css");

$mime_type_match['flv'] = array("application/x-shockwave-flash""application/octet-stream""video/flv""video/x-flv");

?>

Any help will be appreciated.


Offline leoseo

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Flv file Error.
« Reply #1 on: August 02, 2009, 05:42:45 AM »
I have the same problem

filename.flv: Invalid file type (flv, )

it does not show any mime type after the comma so I can not fix it.

EDIT: Just realized it works fine with IE but does not with FF or Chrome, weird.

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
Re: Flv file Error.
« Reply #2 on: August 02, 2009, 06:08:11 AM »
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 leoseo

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Flv file Error.
« Reply #3 on: August 02, 2009, 07:29:24 AM »
Still happens mate. Somehow works with IE though, but not with other browsers.

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: Flv file Error.
« Reply #4 on: August 02, 2009, 08:50:27 AM »
it has nothing to do with browser, mime type is what server detects.
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline leoseo

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Flv file Error.
« Reply #5 on: August 02, 2009, 09:38:15 AM »
But I can upload with IE without problems. When I try with FF or Chrome then it gives out this error.