I have the following curl, to pass a file to my url:
curl -F file=@/Users/david542/spreadsheet.xls http://localhost:8000/spreadsheet
And in my view:
@csrf_exempt
def wb_spreadsheet(request):
# how do I get the file??
return HttpResponse('Hello!')
How do I get the file object to process here?