Upload files through Rest API

We can’t read any binary data while uploading files .

plz someone help for the same…
thanx in advance…

I’m not sure what you mean by can’t read binary data. To upload a file, you need to convert the files to a URL encoded base64 format.

The data you send over the rest API using a PUT message is:


Where anything in square brackets should be filled in with your data

Thank you for reply.
We are using this form to upload file .

Now how we can read the filedata in function save_uploaded_file

What does your save_uploaded_file function look like? Can you share the code?

We need help in reading submitted file “f2” in any function.

Does not seem like ERPNext issue, can you please try googling it.

ok,thanx to all for reply…