I have a question regarding File Uploads API, original document: https://frappeframework.com/docs/user/en/api/rest#file-uploads.
-H in the documentation is the header, what about -F? do I use xhr.send(file);?
- the documentation states that we need to use: -H ‘Authorization: token xxxx:yyyy’, how do I access this token data?
I thought api/method/frappe.auth.get_logged_user would return the token for me, but it only returns the user name for me.
- Or is there any way of upload the file?
thanks in advance.