add csrf_exempt to the endpoint to manipulate attached files

This commit is contained in:
Benjamin Dauvergne 2012-09-26 09:06:34 +00:00
parent 17866beec6
commit d75120b452
1 changed files with 1 additions and 0 deletions

View File

@ -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)