Cloudinary Bad Request 400 Hosting Imgs on Cloudinary Image Hosting


1 comment

  • Avatar
    Aleksandar Kostadinov

    Hi Larisa,

    I went ahead and checked the upload logs on our side for your cloud and I see the reason for the 400 Bad Request errors. From the logs, we can see that the value coming through for the 'file' parameter in the upload requests is actually 'undefined' which then means the upload is rejected.

    May I please ask you to check/log the value of the `file` object before it's added as part of the FormData? You could also try to hardcode a Base64 String for an image as the value of the `file` parameter and send an upload request with it to test/ensure the rest of the upload works. Once you've established that you can understand where the undefined value for the `file` parameter was originating from.

    Please let me know how it goes.

    Comment actions Permalink

Please sign in to leave a comment.