Ell20 Posted August 14, 2008 Share Posted August 14, 2008 Hi, Im in the process of creating a video upload script however I wondered if anyone could point me in the direction of a list of the video upload types. By this I mean like for images you have: image/jpeg, image/gif etc. What are the video equivalents? Thanks for your help Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 14, 2008 Share Posted August 14, 2008 I could be wrong here, but I would use flash. Check out this article, very nice. http://alistapart.com/articles/flashsatay Quote Link to comment Share on other sites More sharing options...
Ell20 Posted August 14, 2008 Author Share Posted August 14, 2008 Hey, I dont want to play the movie, I simply want to upload it. Does anyone no the types for videos like video/wmv etc? Thanks Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 14, 2008 Share Posted August 14, 2008 I guess it will depend on what application your using it for. Is it just storing it for later use? Not sure here? Quote Link to comment Share on other sites More sharing options...
Ell20 Posted August 14, 2008 Author Share Posted August 14, 2008 I just want to upload the video file to the server but I want to check the file type before I allow it to be uploaded? It dosent matter want I want to use the video for after its uploaded I just want it to be uploaded but obviously I dont want people uploaded .pdf files etc so I believe there is a php command where you can do something like this: ($_FILES['moviefile']['type'] == "video/wmv") But I wanted a list of all the possible types if possible Cheers Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 14, 2008 Share Posted August 14, 2008 Ok that clears it up. This might work to limit the types of files. I could be wrong. if (!($uploaded_type=="image/gif")) { echo "You may only upload GIF files.<br>"; $ok=0; } Quote Link to comment Share on other sites More sharing options...
Ell20 Posted August 14, 2008 Author Share Posted August 14, 2008 Man no offence but you dont have a clue what your chatting about. If you can read/answer what im asking then there isnt much point in you answering. Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 14, 2008 Share Posted August 14, 2008 Hold up there cowboy. I now understand you need a list of possible video types. I used to have a link let me check. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.