Upload Widget notification_url
Hi,
is there any Method to add a
notification_url
to a signed widget upload?
I tried passing it inside the params of `prepareUploadParams` function, but the widget doesnt seem to pass the param to to the upload request.
My current implementation:
prepareUploadParams: async (cb, params) => {
console.log('PARAMS', params)
const { signature, api_key, public_id, ...rest } = await generateUploadSignature({
...params,
notification_url: 'my endpoint',
})
cb({
...rest,
signature: signature,
api_key: api_key,
public_id,
notification_url: 'my endpoint', // <== not passed down
})
// /** @TODO figure out error handling */
},
Thanks in advance!
References:
Param i am interested in:
https://cloudinary.com/documentation/notifications#upload_api_notifications
Signed widget upload:
https://cloudinary.com/documentation/upload_widget#signed_uploads
-
Hi,
The notification_url is currently not available for the upload parameters in the upload widget.
What I could suggest is you can use the Global Notification
Please let me know if this helps.
0 -
Hi,
thanks for the reply. Unfortunately thats not an option as we have multiple endpoints depending on the upload.
0 -
Hi,
You can set a `Notification URL` in the upload preset you are passing in the upload widget.
You can find this setting in the "Upload Manipulations" tab in your upload preset.
Please let us know if this works for you.
Best,
Michal
1 -
Thank you. Glad I found this...but, this should definitely be in the documentation.
0 -
Hi Alex,
Thanks for the feedback! I am checking with our documentation team to include this.
Regards,
Francis
0
Post is closed for comments.
Comments
5 comments