上传者: 38509504
|
上传时间: 2023-03-24 18:41:52
|
文件大小: 36KB
|
文件类型: PDF
1. 前台
templates/upload/upload.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="/myupload/upload/" method="post" enctype="multipart/form-data">
{% csrf_token %}
名字:<input type="text" name="name">
头像:<input type="file