Upload preset must be specified when using unsigned upload
What is this?
Here is the code:
const uploadImage = (files) => {
const formData = new FormData()
formData.append('file' ,files[0])
formData.append('upload_preset', 'ml_default')
body: formData})
}
As you can see, I'm specifying the the preset.
Beside that, my preset is, in fact, signed.

-
Hi Jiren,
The upload_preset parameter in the API is expected to be a user-defined upload preset (see https://cloudinary.com/documentation/image_upload_api_reference#upload_required_parameters). The ml_default is an internal value that is not accessible to users.
For more details on upload preset, kindly visit: https://cloudinary.com/documentation/upload_presets#creating_and_managing_upload_presets.
Hope this helps.
Please sign in to leave a comment.
Comments
1 comment