Issue
I know that I can post a file and some formData in a fetch(POST) call but I am having trouble doing the reverse i.e. to receive a file and some formData values by one fetch (could be POST or GET) call. I am looking for resources and documentation but couldn't find anything as of yet on this. I am able to do this for smaller files by sending them as base64 String but for larger files, i am facing issue. Appreciation for any guidances
Solution
you can convert you data into json.
import json
data= 'this is your data'
result = json.dumps(data)
Answered By - Sankara Subramanian
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.