How can i get all file in 3dmodel folder on cloudinary on client side only in reactjs.

NguyenVu Member Posts: 1
edited July 2023 in Developer APIs

Best Answer

  • DannyFromCloudinary
    DannyFromCloudinary Member, Cloudinary Staff Posts: 79
    Answer ✓


    Our React SDK doesn't have a way of doing this because listing the assets requires the resources() method, which relies on the presence of your API Secret. Naturally, this should never be exposed in client-side code, and so listing resources on your account isn't possible in React. I have however just replied to your ticket (#229380) about how to do this in Node.

    If you wanted to use React to display specific 3D models (rather than simply listing all 3D models in your account), then I would recommend using our Product Gallery Widget. You should find some useful documentation for this here:

    I hope this helps. Please let us know if you have any further questions.

    All the best,