Closed
Description
Executing the following cURL uploads an image to my stack's assets inside the specified folder
curl --location 'https://api.contentstack.io/v3/assets' \ --header 'api_key: API_KEY' \ --header 'authorization: MANAGEMENT_TOKEN' \ --header 'Content-Type: multipart/form-data' \ --form 'asset[upload]=@"/path/to/image.jpg"' \ --form 'asset[parent_uid]="PARENT_FOLDER_UID"' \ --form 'asset[title]="Test2_3"'
While the javadocs note the form field's existence, it does not appear to allow me to fill in the form field, causing the image to be uploaded to the root folder. Please let me know if I'm missing something.
Metadata
Metadata
Assignees
Labels
No labels