Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 request.FILES 变量中:
FILES Variable Value script <InMemoryUploadedFile: landing.jpg (image/jpeg)>
我将如何在这里提取文件名以获得“landing.jpg”?
通过request.FILES[u'script'].name.
request.FILES[u'script'].name