T
T
Timebird2019-08-11 21:31:38
Python
Timebird, 2019-08-11 21:31:38

The easiest way to pass information to the server?

Good evening!
There is a form in html, the user fills in the text information and attaches the file.
I need to pass this information to the server.
Never dealt with backend.
What options do I have for submitting information? Is it possible to transfer everything with a single json, only so that one of the fields is occupied by a file? Whether it is obligatory to fence SQL? What to read on this topic?
There will be up to 50 withdrawals per day.
Estimated file size - up to 100 MB.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lubezniy, 2019-08-11
@lubezniy

JSON file cannot be uploaded. And the storage method is chosen based on how many such inputs there will be, what the estimated file size is and what further is required to do with all this.

D
Dimonchik, 2019-08-11
@dimonchik2013

https://tutorial.djangogirls.org/en/django_forms/
there are easier things, but this one will lead to the goal faster
if you only test - you can some
https://gist.github.com/UniIsland/3346170
(did not check to work)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question