А
Size: a a a
А
A
RS
RS
A
A
А
А
vc
.
M
M
A
M
M
@api_view(['POST'])
def feedback(request):
title = request.data.get('title')
text = request.data.get('text')
fileName = request.data.get('fileName')
print(title, text, fileName)
print(request.data)
return Response('hello world')
M
M
console.log(this.fileNames)
let data = new FormData(this.$refs.myForm)
data.append('title', this.title)
data.append('text', this.text)
data.append('fileName', this.fileNames)
axios.post('/feedback/', data, config)
.then(response => {
console.log(response.data)
}
M
AG