Skip to main content

GetResource with asp.net / C # does not find file

Comments

3 comments

  • Roee Ben Ari

    Hi, 

    One possible scenario is that you're trying to find a video file while the `GetResource` method defaults to Image. If that's the case, then please use the 'Video' ResourceType, like this:

    var getResourceParams = new GetResourceParams()
    {
    public_id,
    ResourceType = ResourceType.Video
    };


    If that isn't the case, then it would be helpful if you'll share more information about the request, such as cloud_name, public_id so we could check your logs. If you'd like to keep it private, then please feel free to open a support ticket and we'll gladly help further. 

    0
  • colltex.cloudinary

    Integrating the folder in public_id helps. Thanks very much. Suggestion: Offer parameter folder at GetResource, Destroy, ... at asp.net.

    0
  • Stephen Doyle

    Hi,
    Thanks for the feedback - I responded to your other comment about this, but for the benefit of others reading this, the 'folder' parameter is primarily applicable to the upload API where you may want to add a file to a specific folder, then specify another method of naming the file. In other cases, including our API responses and webhooks notication payloads, the public_id value should be preserved, and this includes the folder path: https://cloudinary.com/documentation/image_upload_api_reference#sample_response

    Regards,

    Stephen

    0

Post is closed for comments.