Supported file types: jpg, jpeg, gif, png, avi, mpg, etc.

zugzug

Joined: 2004-09-20
Posts: 3
Posted: Mon, 2004-09-20 19:09

Are there any plans or a fix so I can add my .rm files that are made using realproducer. I prefer these video files for there compression and quality and was wondering how to get these file types supported for upload as well.

Thanks!
Clint

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-09-20 19:44

You can edit the file named "util.php" in the gallery directory, and locate the function that looks like this:

function acceptableMovieList() {
    return array('avi', 'mpg', 'mpeg', 'wmv', 'mov', 'swf', 'mp4');
}

Then add the file types you want to the end, so that it looks like this:

function acceptableMovieList() {
    return array('avi', 'mpg', 'mpeg', 'wmv', 'mov', 'swf', 'mp4', 'rm', 'ram');
}
 
zugzug

Joined: 2004-09-20
Posts: 3
Posted: Mon, 2004-09-20 20:38

That worked great!, thanks!!!!!!!

 
sandacorn1

Joined: 2005-10-24
Posts: 1
Posted: Mon, 2005-10-24 23:02

I have a similar problem. I need to be able to upload jpeg 2000 files with the extention jpf. I tried the above method but it didn't work
I'm using gallery v1.4-pl2

Any suggestions or am I wasting my time trying?
Thanks