# Square API for invoice attachments 'Received multiple request parts. Please only supply zero or one `parts` of type appl
The 'Received multiple request parts' error on invoice attachments means the server cannot parse the file's Content-Type. The SDK's File type lets you set it explicitly: pass a tuple like `(os.path.basename(pdf_filepath), open(pdf_filepath, 'rb'), 'application/pdf')` as image_file in `create_invoice_attachment` so the multipart part carries the right content type.
## Context from the issue
gh:square/square-python-sdk#150: Issue square/square-python-sdk#150 (closed, 6 comments): **Describe the bug** I am continually getting the multiple request error when invoking invoices.create_invoice_attachment ``` *** square.core.api_error.ApiError: status_code: 400, body: {'errors': [{'category': 'INVALID_REQUEST_ERROR', 'code': 'INVALID_CONTENT_TYPE', 'detail': 'Received multiple request parts. Please only supply zero or one `parts` of type application/json.' }] } ``` **Expected behavior** The API should attach a file in dev to an invoice and return a successful attachment JSON **To Reproduce** 1. setup python app to use square package using pip 2. invoke create_invoice_attachm