How do you create a video file upload form with Django?
I want a user to be able to uplo开发者_Python百科ad a video from their computer or record it right from their webcam, then fill out other information with a form. I'm writing this app with Django.
Recording directly from the web cam is not as simple as uploading an existing video file. You may need to look into one of the many video streaming protocols and handle that via a server such as red5. This approach would require the use of Flash or something similar.
The Django documentation should be able to help you handle file uploads:
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/
Additionaly have a look at jquery uploadify. It's pretty useful for large file uploads because it display the progress of the download.
精彩评论