Hello, I'm trying to upload a file from my pc to my pythonanywhere folder. This is the code: :::python
test_file = open("database/conto.sqlite", "rb")
test_url = "https://www.pythonanywhere.com/user/[name_user]/files/home/[name_user]/mysite/database/"
test_response = requests.get(test_url, files = {"form_field_name": test_file})
if test_response.ok:
print("Upload completed successfully!")
print(test_response.text)
else:
print("Something went wrong!")
print(test_response.text)
The response si "Upload completed successfully!" but nothing has been uploaded! Where am I going wrong? Thank you!