• How can I add more allowed file extensions? 5 0 5 1
Currently:  

Author Topic: How can I add more allowed file extensions?  (Read 347786 times)

0 Members and 3 Guests are viewing this topic.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: How can I add more allowed file extensions?
« Reply #60 on: April 07, 2006, 09:20:22 PM »
I have a question about 3gp...

We have a lot of wmv videos on our server. The user only should view the wmv format!

Now I want to add a function that users can download these videos also in 3gp e.g. for their mobilephones.

I donīt know (donīt believe) if itīs possible to convert these videos automatically on the fly when the user will download this video in 3gp.

So I think I convert every video myself and load it to my server. So how can I add a button - Download as 3gp -

Iīll be happy when somebody has a nice idea :) or a better way for spending time (over 700 videos to convert) :?

Project offline

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: How can I add more allowed file extensions?
« Reply #61 on: April 07, 2006, 11:53:49 PM »
download url wont work?
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 Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: How can I add more allowed file extensions?
« Reply #62 on: April 08, 2006, 07:20:20 AM »
The download works, but users can only download this file what they seeing on details.php... e.g. the wmv video...

Project offline

Offline puremuzikarmy

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #63 on: April 10, 2006, 02:14:12 AM »
I'm sorry but i searched everything i could think of.  My problem seems to be a bit different.  When i try to upload a movie file, like an AVI  it seems like its going to upload.  I get no error message.  then nothing uploads.  The only thing i'm able to upload are images.  Everything seems to be fine.  I even tried to upload a file i know i didnt have an extention for and i did get an error so i know that works.  I'm uploading movie files way under my upload limit so i know thats not the problem.  Could someone help me with this?

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: How can I add more allowed file extensions?
« Reply #64 on: April 10, 2006, 06:06:30 AM »
are you sure that that filesize is less then upload_max_filesize set in php.ini ? (check phpinfo)
« Last Edit: April 11, 2006, 03:00:45 AM by V@no »
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 Hailer

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #65 on: April 10, 2006, 07:48:40 PM »
if you have 1.72 you find phpinfo in the CP.
there should be then a value for max uploaded file size

I am on 1.7.1

However, I did go to the control panel and adjust the max size to allow the video i am trying to upload, but it still returns with "please select an image file."

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: How can I add more allowed file extensions?
« Reply #66 on: April 11, 2006, 03:00:22 AM »
99% is that your files are bigger then upload_max_filesize value in php.ini
(read my previous reply)
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 diabolik

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #67 on: May 16, 2006, 08:09:06 PM »
hello mans i have one error :
Quote
Error uploading image file: guia_flv.fla
guia_flv.fla: Invalid file type (fla, application/octet-stream)

No database entry!

please man i need this modification :)


Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Your first three "must do" before you ask a question ! ( Đ by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline diabolik

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #69 on: May 16, 2006, 09:23:11 PM »
not have the answer ..

it you can put here please? with .flv extention

Offline *handsome*

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #70 on: May 29, 2006, 11:18:41 AM »
@ m3tallica and all other wmv-friends,

WMV as new valid file extensions

1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions

2. for wmv-files add the following code line into your includes/upload_definitions.php
Code: [Select]
$mime_type_match['wmv'] = array("video/x-ms-wmv");

3. create a new wmv.html in templates/<your_template>/media/ like this
Code: [Select]
<!-- Template file for WMV Movies  -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>

4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this


... thats all ... now you can present wmv-files in your 4images gallery ...  8)
mawenzi


i have try this but i got this error

http://www.funpoint.be/funpictures/categories.php?cat_id=6&sessionid=ede44dd90f7d59494a6aaef2e016f6ef

now my gallery is not working :(

http://www.funpoint.be/funpictures

Offline sv800

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #71 on: August 13, 2006, 03:26:36 PM »
@ m3tallica and all other wmv-friends,

WMV as new valid file extension

1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions

2. for wmv-files add the following code line into your includes/upload_definitions.php
Code: [Select]
$mime_type_match['wmv'] = array("video/x-ms-wmv");
or this (update ...)
Code: [Select]
$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown")

3. create a new wmv.html in templates/<your_template>/media/ like this
Code: [Select]
<!-- Template file for WMV Movies  -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>

4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this


... thats all ... now you can present wmv-files in your 4images gallery ...  8)
mawenzi

Oustanding..thanks, works perfectly...thanks for the advice

Offline Mindraider

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #72 on: February 11, 2007, 09:31:07 PM »
Great post. Thanks!

Offline Freak Show

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #73 on: February 15, 2007, 04:17:36 AM »
Hey, your instructions worked beautifully for the wmv's.

But I was hoping for something that would somehow produce a thumbnail through the autothumb process that's actually derived from the video itself. So lets say the video is of a beach, I need a beach to show up as the thumbnail. Can someone tell me how to do that? Pretty please?

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #74 on: February 15, 2007, 06:19:10 AM »
you will have to do that yourself either with a certain kind of editing software or by playing the video and taking a screenshot