Top "Django-file-upload" questions

Django-file-upload refers to how django handles file uploads

Django FileField: How to return filename only (in template)

I've got a field in my model of type FileField. This gives me an object of type File, which has …

django django-templates django-file-upload
How do you convert a PIL `Image` to a Django `File`?

I'm trying to convert an UploadedFile to a PIL Image object to thumbnail it, and then convert the PIL Image …

python django python-imaging-library django-file-upload django-uploads
How to limit file types on file uploads for ModelForms with FileFields?

My goal is to limit a FileField on a Django ModelForm to PDFs and Word Documents. The answers I have …

django django-forms django-file-upload
FileField Size and Name in Template

How do I get the size and name of a FileField in a template? My model is setup like this: …

django django-templates django-file-upload
Saving image/file through django shell

I am trying to save an image file through django shell. My model.py is: class user(models.Model): name = …

django django-models django-file-upload django-shell python
Python and Django - How to use in memory and temporary files

I need some examples with file operations using in memory and temporary files. I searched a lot for a good …

python django django-file-upload
Django uploads: Discard uploaded duplicates, use existing file (md5 based check)

I have a model with a FileField, which holds user uploaded files. Since I want to save space, I would …

python django django-models django-file-upload
Restricting access to private file downloads in Django

I have multiple FileFields in my django app, which can belong to different users. I am looking for a good …

python django django-file-upload
Upload Image with Django Model Form

I'm having difficulty uploading the following model with model form. I can upload fine in the admin but that's not …

django django-models django-forms django-file-upload
Reading file data during form's clean method

So, I'm working on implementing the answer to my previous question. Here's my model: class Talk(models.Model): title = models.…

django django-file-upload mutagen