0

I am trying to upload file to webform using web services(REST). I found an example regarding how to upload file. POST request Query params: ?_format=json Headers: Content-Disposition: file; filename="testing-api.jpg" Content-Type: application/octet-stream X-CSRF-Token: 'your token from login' Body: binary: select image to upload URL: /file/upload/{entity_type_id}/{bundle}/{field_name} Example with node type article: file/upload/node/article/field_image?_format=json

In the above example, file is uploaded to field_image field which is in article. Can any one tell what is the entity_type_id and bundle for webform?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.