filename = 'whatever.xyz'
file_obj = request.data['file']
with default_storage.open('tmp/' + filename, 'wb+') as destination:
    for chunk in file_obj.chunks():
        destination.write(chunk)
How to copy InMemoryUploadedFile object to disk