Reputation: 110163
In my request.FILES variables:
FILES Variable Value script <InMemoryUploadedFile: landing.jpg (image/jpeg)>
How would I pull the filename here in order to get "landing.jpg" ?
Upvotes: 3
Views: 5807
Reputation: 798636
Via request.FILES[u'script'].name.
request.FILES[u'script'].name
Upvotes: 16