Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-08-2005, 06:55 PM   #1
Registered: Nov 2004
Distribution: fc4
Posts: 104

Rep: Reputation: 15
apache/php video mime types

hi all

we are making a form for users to upload media content to our site
just a quick question, users will probably be able to upload any video content (not streaming)

we need to make sure that the file we are uploading is compatible, so either jpeg, or video not streaming

is there a common regex that i can use for this
i know we can use something like
PHP Code:
for jpeg's

can i use something like
PHP Code:
for video's

most common videos would be what we were looking at
usually something from a phone/camera, cos these will be very short videos, definitely smaller than 2MB

.avi, .wmv, .mpg, mp4, 3gp, .mov, there are prolly more, so if someone can think ahead for me

and we may be looking to add audio as well, so would that be like
PHP Code:
and would i need to add each mime type to the httpd.conf for this to work properly, eg. add one AddType for each mimetype that we expect to be used?
actually i've been doing some testing and all the mime types appear to be there, does anyone know where i can find the file with the list of mime types?


Last edited by dtra; 08-08-2005 at 08:53 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cups, mime.types and mr.wobble Linux - Networking 2 05-29-2006 10:44 PM
how to set mime-types? gaah Linux - Newbie 1 10-15-2005 10:23 PM
mime types Nightfrost Linux - General 2 10-01-2004 05:11 AM
Gnome 1.4 and mime types kly546 Debian 0 07-25-2003 02:04 AM
MIME Types? JoeLinux Linux - Software 6 09-14-2002 04:54 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration