Dear Imagekit Team,
I’m using the below request to make the API to upload the image to Imagekit. I realized that it just accepts only the params token, expire, signature..
. When I add the Authorization header even combining with token, expire, signature..
. It returns the error 400 Bad request (Your request is missing authorization parameters. Read the upload API documentation.)
. Can you explain that message? Or I’m using it wrongly?
curl --location 'https://upload.imagekit.io/api/v1/files/upload' \
--header 'Accept: application/json' \
--header 'Authorization: Basic ABC123' \
--form 'file=@"/path/to/file"' \
--form 'fileName="mobile"' \
--form 'publicKey=""' \
--form 'signature=""' \
--form 'expire=""' \
--form 'token=""'
Thanks in advance!