add csrf_exempt to the endpoint to manipulate attached files
This commit is contained in:
parent
17866beec6
commit
d75120b452
|
@ -76,6 +76,7 @@ def file_response(file_object):
|
|||
response['Content-disposition'] = 'attachment'
|
||||
return response
|
||||
|
||||
@csrf_exempt
|
||||
def upload_file(request, transaction_id, filename):
|
||||
storage = DefaultStorage()
|
||||
path = os.path.join('upload', transaction_id, filename)
|
||||
|
|
Loading…
Reference in New Issue