Skip to content

djangodocs

Django 3.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
  • Italiano
  • Português (Brasil)
  • 한국어
  • Español
  • Ελληνικά
  • Polski
Documentation contents
  • Django 文档
  • 开始
  • 使用 Django
  • 操作指南
  • Django FAQ
  • API 参考
    • 应用程序
    • 系统检查框架
    • 内置基于类的视图 API
    • 点击劫持保护
    • contrib 包
    • 跨站请求伪造保护
    • 数据库
    • django-admin 和 manage.py
    • Django 异常
    • 文件处理
      • File 对象
      • 文件存储 API
      • 上传的文件和上传处理程序
    • 表单
    • 中间件
    • 迁移操作
    • 模型
    • 分页器
    • 请求和响应对象
    • SchemaEditor
    • 配置
    • 信号
    • 模板
    • TemplateResponse 和 SimpleTemplateResponse
    • Unicode 数据
    • django.urls 实用函数
    • URLconfs 中使用的 django.urls 函数
    • Django 实用程序
    • 验证器
    • 内置视图
  • 元文件和杂记
  • 术语
  • 发行说明
  • Django internals
Django 3.2 is no longer supported. It receives no security fixes. Use it for reference only. Latest release
Chinese (Simplified) translation. Contributed by the Django community. 75.8% Help translate
  1. Django 3.2
  2. API 参考

文件处理Link to this heading#

  • File 对象
    • File 类
    • ContentFile 类
    • ImageFile 类
    • 附加在对象上的文件方法
  • 文件存储 API
    • 获取当前存储类
    • FileSystemStorage 类
    • Storage 类
  • 上传的文件和上传处理程序
    • 上传的文件
    • 内置上传处理程序
    • 编写自定义上传处理程序

This page as Markdown JSON

Edit this page on GitHub Official version

PreviousDjango 异常 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