Hi all,
I’m facing a problem testing a post API with POSTMAN to upload a custom doctype.
My set is like that:
I have a custom doctype named “Record”, this doctype has some different field and among them i’ve created an attach field named “file”.
Creating a new Record from the User Interface goes well attaching the file using the attach button.
I want to create a new record with an attached file using the post API endpoint.
I’m testing it using POSTMAN desktop in a linux enviroment.
The creation of the record without the file attached goes well without any problem, but if i try to attach the file in the post request, when the new record is created is created without the attached file, leaving the file attach field as None.
This is my request in Postman (I setted everthing as it should be i think: i’m uploading the file in postman selecting the file type in the request and selecting the file from my pc )
And this is the response from frappe:
I’m really lost in that what should i do?