Skip to content

djangodocs

Django 2.2
  • 6.1 current
  • 6.0
  • 5.2 LTS
  • 5.1 unsupported
  • 5.0 unsupported
  • 4.2 unsupported
  • 4.1 unsupported
  • 4.0 unsupported
  • 3.2 unsupported
  • 3.1 unsupported
  • 3.0 unsupported
  • 2.2 unsupported
  • 2.1 unsupported
  • 2.0 unsupported
简体中文
  • English
  • 简体中文
  • Français
  • 日本語
  • Bahasa Indonesia
  • Português (Brasil)
  • 한국어
  • Español
  • Ελληνικά
  • Polski
Documentation contents
  • Django 文档
  • 开始
  • 使用 Django
  • 操作指南
  • Django FAQ
  • API参考
    • 应用
    • 系统检查框架
    • Built-in class-based views API
    • Clickjacking Protection
    • contrib packages
    • Cross Site Request Forgery protection
    • Databases
    • django-admin and manage.py
    • Django Exceptions
    • File handling
      • File 对象
      • File storage API
      • Uploaded Files and Upload Handlers
    • 表单
    • 中间件
    • Migration Operations
    • 模型
    • Request and response objects
    • SchemaEditor
    • 配置
    • 信号
    • 模板
    • TemplateResponse and SimpleTemplateResponse
    • Unicode data
    • django.urls utility functions
    • django.urls functions for use in URLconfs
    • Django Utils
    • Validators
    • Built-in Views
  • 元文件和杂记
  • 术语
  • Release notes
  • Django internals
Django 2.2 is no longer supported. It receives no security fixes. Use it for reference only. Latest release
Chinese (Simplified) translation. Untranslated passages appear in English. 33.5% Help translate
  1. Django 2.2
  2. API参考

File handlingLink to this heading#

  • File 对象
    • The File class
    • The ContentFile class
    • The ImageFile class
    • Additional methods on files attached to objects
  • File storage API
    • Getting the current storage class
    • The FileSystemStorage class
    • The Storage class
  • Uploaded Files and Upload Handlers
    • Uploaded files
    • Built-in upload handlers
    • Writing custom upload handlers

This page as Markdown JSON

Edit this page on GitHub Official version

PreviousDjango Exceptions NextFile 对象

An unofficial rendering of the Django documentation.

Not affiliated with or endorsed by the Django Software Foundation. The documentation is copyright © Django Software Foundation and individual contributors, and is used under the BSD 3-Clause licence. “Django” is a trademark of the Django Software Foundation.

This translation is the work of the Django i18n community, not of this site. Read the official documentation at docs.djangoproject.com.

👋 Jason Cartwright