Django File Upload

Get Started. It's Free
or sign up with your email address
Django File Upload by Mind Map: Django File Upload

1. Project Review

1.1. Summary of Project

1.2. Timeline:

1.3. Budget:

1.4. Resources:

2. Configuration

2.1. MEDIA_ROOT

2.2. MEDIA_URL

2.3. Serving media files

3. Basic Concepts

3.1. Sending files using POST request

3.2. Set proper form encode type

3.2.1. enctype="multipart/form-data"

3.3. Files are uploaded to request.FILES

3.3.1. dictionary-like object

3.3.2. Each file is an UploadedFile instance

4. Handling Uploaded Files

4.1. File storage API - FileSystemStorage

4.2. Model form fields FileField and ImageField

4.2.1. FileField

4.2.1.1. File saved in the file system

4.2.1.2. Saved as text in the database

4.2.1.3. File is not deleted if object is deleted

4.2.1.4. Overide model deleted method

4.2.2. ImageField

4.2.2.1. Pillow - Pillow (PIL Fork) 5.3.0 documentation