# I need to pass .PFX file through API call with postman (As Base64File)

**URL:** <https://community.postman.com/t/i-need-to-pass-pfx-file-through-api-call-with-postman-as-base64file/34806>\
**Category:** Help Hub\
**Tags:** file, uploads\
**Created:** [April 27, 2022, 8:44am UTC](https://community.postman.com/t/i-need-to-pass-pfx-file-through-api-call-with-postman-as-base64file/34806 "2022-04-27T08:44:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-operator-7](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@technical-operator-7](https://community.postman.com/u/technical-operator-7)\
**Post date:** [April 27, 2022, 8:44am UTC](https://community.postman.com/t/i-need-to-pass-pfx-file-through-api-call-with-postman-as-base64file/34806/1 "2022-04-27T08:44:34Z")

</div>

_My question_:

Hello everyone,  
I am facing an issue by attaching a file to the API call through Postman. The file is a “Wildcard (.PFX)” which can add subdomains. So, in my payload I have to send following data  
**{**  
\*\* “DomainName”: “string”,\*\*  
\*\* “SubDomain”: “string”,\*\*  
\*\* “CertificatePassword”: “string”,\*\*  
\*\* “WebsiteId”: “string”, \*\*  
\*\* “Base64File”: “string”\*\*  
**}**

What I did was going to Body → Raw data as follows  
Gave the name to KEY as **basefile**  
attached the encoded PFX text file to the value.  
Then I have pass the name of the KEY to payload as follows.  
\*\* “Base64File”: “{{basefile}}”\*\*  
Then I get following error message.

**“Message”: “The request entity’s media type ‘multipart/form-data’ is not supported for this resource.”**

 ![Screenshot (1165)](https://us1.discourse-cdn.com/getpostman/original/3X/0/0/008651e31eec97a9938b678013339c96a0a0eb37.png)

![Screenshot (1167)](https://us1.discourse-cdn.com/getpostman/original/3X/3/8/38fa82d79c67141e2be20693fa1d4d00d63142b3.png)

These are details of the header

 ![Screenshot (1170)](https://us1.discourse-cdn.com/getpostman/original/3X/a/0/a01e972ab8f34ab36c861c581540b04dc67c9fa5.png)

_I’ve already tried_:

I tried to attach the pure PFX file without converting. But it didn’t work.

I would really appreciate if anyone could help me on this issue.

Best Regards
