

If form.is_valid() and form.is_multipart():

So finally what my intention is, to convert all the uploaded videos to MP4 format and store in the media folder during uploading, so that we can display all those videos using html video tag.įorm = UploadFileForm(request.POST, request.FILES) So actually the problem is the videos which are in the format of MP4 are playing and remaining are not.īelow are some of my partial html code and view functions

So my code is working fine and videos are uploaded successfully in to media folder.Īnd I am displaying all those uploaded videos on a separate html page, using html video tag, I am using django and very newbie in using it.Presently building a basic uploads page, that uploads the videos to hard disk(basically in to media folder inside the django project)
