NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Rest API Discussions

Upload a docx file to Netapp using NetApp ONTAP REST API

rsh
970 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