Skip to content

How to send metadata when using restful api to upload a image? #6771

Closed
@smoothdvd

Description

@smoothdvd

curl -X POST
-H "X-Parse-Application-Id: foo"
-H "X-Parse-REST-API-Key: bar"
-H "Content-Type: application/json"
--data-binary '@src/assets/test.png'
http://localhost:1337/parse/files/test.png

How to send metadata with this post request?

Like in JS SDK, we can do this by

const file = new Parse.File('myfile.zzz', fileData, 'image/png', metadata, tags);

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:docsOnly change in the docs or READMEtype:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions