Replies: 1 comment
-
If you send your request as JSON, then your data will be available in See this page for more info: https://flask.palletsprojects.com/en/2.3.x/patterns/javascript/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm sending data (python class,
list
,dict
) trough ajax to Flask.What would be the best way to retrieve them ?
I've seen in the documentation
That prior to use
request.get_data
we should check the data length.is it correct that
request.content_length
retrieve the information from the header fields ?Is MAX_CONTENT_LENGTH trigger before
request.get_data
? and therefore is it enough ?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions