iOS Error: Upload preset must be specified when using unsigned upload

Comments

5 comments

  • Avatar
    Michal Kuperman

    Hi Chandra,

    It seems that the signature wasn't included in the upload request. Can you please check that the `response.digest` variable does include a valid signature?

    0
    Comment actions Permalink
  • Avatar
    Chandra

    Hello @Michael Kuperman: 

    the `response` object from the REST API has `digest` and response.digest is printing the right value that I received from my webservice. 

    The 4th line has response.digest

    uploadParams
    .setSignature(
    CLDSignature(
    signature: response.digest,
    timestamp: NSNumber(value: response.tstamp)
    )
    )

    How do I validate if that is a "valid" signature?

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    Hi Chandra,

    When looking at the logs on our side we see that the two uploads from the iOS SDK for your account which returned this error did not contain a signature and timestamp parameter as part of the upload API request. When a signature is invalid you would receive a different error message. The one you are seeing is due to the signature and timestamp parameters not being part of the upload request. In your iOS code, we don't see how the backend server is being called which then returns the 'response' object. May I please ask you to share that also? In addition, could you please print/log the value of `uploadParams` in your code before the upload request?

    If you would like, you can submit those details privately/directly to us by creating a ticket using the following link:
    https://support.cloudinary.com/hc/en-us/requests/new

    0
    Comment actions Permalink
  • Avatar
    Chandra

    Hello Aleksandar,

    Thanks for your reply. I have submitted a ticket at the above link. I hope you can help me. 

    Best, Chandra

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    Thanks, Chandra. We've received your ticket and have responded earlier.

    0
    Comment actions Permalink

Please sign in to leave a comment.