Upload image as POST request and "error: file is missing"

Hello,
Im trying to upload an image in a project and according to the documentation there are tow required attributes: "id of the project" and "file"(string representation). Im passing the base64 representation of the image but the respond is - “error: file is missing”. Any suggestions how should I resolve this problem? Thanks!