Upload File in Rest API

How to upload a file in erpNext by REST API ?
How to increase the file size ?

Please note , I am trying to upload file by api ```

But getting permission issue .
Though I am trying to upload by Admin and also registered use who has access the doctype , but still getting Not Permitted message .

Thanks Biswajit
1 Like