Home > front end >  <input type="file"> can't upload files
<input type="file"> can't upload files

Time:10-31

 


<meta charset="utf-8" & gt;
Title

<body>
{% csrf_token %}





 
Def aaa (request) :
. If the request method=='GET' :

Return render (request, 'souye/a.h HTML')

Elif request. The method=='POST' :
A=request. POST. Get (' file ')
Print (a)


Return an HttpResponse (" registration ")


Output is submitted to None, however, is not uploaded successfully,
To solve the thank you,

CodePudding user response:

The output request file attributes
  • Related