ONTAP Rest API Discussions

Upload a docx file to Netapp using NetApp ONTAP REST API

rsh
197 Views

Hello,

I am using ONTAP 9.11 and trying to upload a docx file to a netapp volume using the following REST API via postman:
POST api/storage/volumes/volumeid/files.
Content Type is multipart/form-data and the body is form-data with a key of file. The value is the actual file.

I am receiving an error when attempting this: 
400 - Could Not Parse multipart/form-data body
When I upload a .txt file it works fine with 201 - Created response.
Is it possible to upload a docx file?

0 REPLIES 0
Public