NK
Size: a a a
NK
AF

< Allow: OPTIONS, GET, HEAD, PATCH, DELETE
<
{
"message": "The method is not allowed for the requested URL."
}
AK
AT
DD

Traceback (most recent call last):
File "C:/Users/dolgo/PycharmProjects/vpp-flask/main.py", line 31, in <module>
def upload():
File "C:\Users\dolgo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 1315, in decorator
self.add_url_rule(rule, endpoint, f, **options)
File "C:\Users\dolgo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 98, in wrapper_func
return f(self, *args, **kwargs)
File "C:\Users\dolgo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 1282, in add_url_rule
raise AssertionError(
AssertionError: View function mapping is overwriting an existing endpoint function: upload
DD
DD

DD
V
V
V
V
DD
AT
B
С
B
DD
DD
def upload_file_storage(request):
file = request.files['myFile']
file_name = request.files['myFile'].filename
file.save(f'C:\\Users\\dolgo\\Downloads\\{file_name}')
s3.put_object(
Body=file,
Bucket='test-bucket',
Key=file_name,
)
return jsonify("upload_file_storage")
V