Try ERPNext Buy Support Partners Foundation

Image/files upload through webpages

I have created a html form in a webpage. The form allows users to upload files and images.

I encode the images into base64 using JavaScript and send it the doctype with frappe.call.

Pls how to I decode the base64 image on the server-side using python and save it to /mysite.local/public/files ?

Any suggestion will be greatly appreciated.

Thanks.