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 Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/ 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 Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616525 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 Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616528 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? Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616549 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 Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616558 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; } Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616569 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. Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616576 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. Link to comment https://forums.phpfreaks.com/topic/119670-video-upload-types/#findComment-616609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.