0

I want to use django-uploadify to upload for videos only, I just want it to upload videos only, all kind of videos, or at least all kind of popular video formats.

So far, i added uploadify in settings.py and in urls.py I added this

(r'^uploadify/',include('uploadify.urls')),

But didn't go through every step described in the docs just yet, I'll do the other steps when you tell me how to configure django-uploadify for videos only.

django-uploadify is not well documented so i'm relying on your experience to configure it.

if you have a better way to create a video uploading form, please tell me.

user
  • 973
  • 4
  • 14
  • 29

2 Answers2

0

django-uploadify does not come with a custom filefield you are still going to use the django FileField that AFAIK does not have this kind of validation (filename extension checking).

You have to implement yourself this validation, you can do that using model validation or you can extend the django-uploadify form and add some validation there.

you can see a code example here

Tommaso Barbugli
  • 11,781
  • 2
  • 42
  • 41
0

You will have to modify the templatetag to include the fileExt option to enable client side file extension checking. This will only check if someone is "probably" uploading a video.

You should of course also implement server side model validation too, as you can't trust the client.

ashwoods
  • 2,209
  • 1
  • 22
  • 36