Need to access the uploaded image in Extension Level by public level

Hi,

Have tried to upload the jpg/png image using Fynd platformclient api in Extension level. The images which is uploaded using startupload and completeupload platformclient api method. but, have problem to open the uploaded image by public level. getting error as Access denied.

have tried the below api to open the image in public level. please check it and let me know.

Sample Api:

await platformClient.fileStorage.getSignUrls
({
     "body": {
               "urls": [
                         mobile_cdm_url,
                         mob_completeUpload?.cdn?.absolute_url
                       ],
                "expiry": "30000"
              }
});

Response:

  "urls": [
        {
            "url": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/platform/extensions/novus-cms/private/original/dV4r2KIN--Untitled-design.png",
            "signed_url": "https://storage.googleapis.com/jiomart-staging-assets-private/jmrtz0/platform/extensions/novus-cms/private/original/dV4r2KIN--Untitled-design.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=4342514435-compute%40developer.gserviceaccount.com%2F20231108%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20231108T110137Z&X-Goog-Expires=30000&X-Goog-SignedHeaders=host&X-Goog-Signature=56a8c715b24da42c519c57d539bd916cccc2bd3d0c2c0f5c7f510bb4bb0f4a7e9f41f23fda346ade10eead0f637d5bcdc0fa2c228e89a6da8115a5facbc8aca605b7333559d86329b56949e4869eee03c1013fe69730ad1d365121172397cdbb62876b6b2bf097a5184a30e188461654ecdfe707ae289286c1886cdc207aa6425002e5936708bbff1dd40af39dd2da81a24d2c0b50df3aea59c8c648629f726e0a71497a5a7a93808355db7db708a5f49e8936ecdae287b020a2db2cd36f227c31ac86b4394f72317486a05c29f0f87c7ecdc62d644d9e804f469324823dfa5375a13c652f7968835359aec15590a16353f93affd0e0236c5fba904b0d11ae73",
            "expiry": "30000"
        },
        {
            "url": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/platform/extensions/novus-cms/private/original/dV4r2KIN--Untitled-design.png",
            "signed_url": "https://storage.googleapis.com/jiomart-staging-assets-private/jmrtz0/platform/extensions/novus-cms/private/original/dV4r2KIN--Untitled-design.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=4342514435-compute%40developer.gserviceaccount.com%2F20231108%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20231108T110137Z&X-Goog-Expires=30000&X-Goog-SignedHeaders=host&X-Goog-Signature=56a8c715b24da42c519c57d539bd916cccc2bd3d0c2c0f5c7f510bb4bb0f4a7e9f41f23fda346ade10eead0f637d5bcdc0fa2c228e89a6da8115a5facbc8aca605b7333559d86329b56949e4869eee03c1013fe69730ad1d365121172397cdbb62876b6b2bf097a5184a30e188461654ecdfe707ae289286c1886cdc207aa6425002e5936708bbff1dd40af39dd2da81a24d2c0b50df3aea59c8c648629f726e0a71497a5a7a93808355db7db708a5f49e8936ecdae287b020a2db2cd36f227c31ac86b4394f72317486a05c29f0f87c7ecdc62d644d9e804f469324823dfa5375a13c652f7968835359aec15590a16353f93affd0e0236c5fba904b0d11ae73",
            "expiry": "30000"
        }
    ]
}

Need to access the image url by public level.so am calling the above api to do the same.

While opening the signurl response(Uploaded Images) in new tab is not opening in browser.

Thanks

@rushikesh Any Update on this. CC: @Beermohamed_S1

@rushikesh Any Update… CC: @Beermohamed_S1

hi @Sardhar_Mohamed
share the response again in thread here
only response

@rushikesh Please check the below response and let me know

Image Name: {

fieldname: ‘web_offer_banner’,

originalname: ‘Untitled design.png’,

encoding: ‘7bit’,

mimetype: ‘image/png’,

buffer: <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 01 f4 00 00 01 f4 08 06 00 00 00 cb d6 df 8a 00 00 00 09 70 48 59 73 00 00 0e c4 00 00 0e c4 01 … 11809 more bytes>,

size: 11859

}

Image Uploaded Response: {

file_name: ‘Untitled design.png’,

operation: ‘putObject’,

size: 11859,

namespace: ‘platform-extensions-private’,

content_type: ‘image/png’,

file_path: ‘/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png’,

method: ‘PUT’,

tags: [],

upload: {

url: 'https://storage.googleapis.com/jiomart-staging-assets-private/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=4342514435-compute%40developer.gserviceaccount.com%2F20231127%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20231127T111138Z&X-Goog-Expires=1800&X-Goog-SignedHeaders=host&X-Goog-Signature=0a7ad10b905803ef8187d04a7aa6232f5e1b1049c7128fe1276c664259959d3fa1dc37300d5b6d316ceecab1c268f93e8c64251f3d4cd2d5e575932f1a670b423224139e113bf06ef4d24764b197404c7e9c1ff235780116b2892f4e0893b5431b0c8fe0e93d0f8c3212c574c3c04d83fa019365f5af001dc05cc844689fc3306b1692b5f99a9ac9a170cc62948f649221835d3a5226be69772b833599fcbbe1f58153c9a1a230802c26d29465cf2776b1a1dc96313ebd50bf3b60ef65978bb33ddbbea7cdb626cf0d8bcc07b7a26bd8368c2de97081ad7e9806964ead5d102254a9639971f68fda37f596554355bb9a30dd6857c611419ef45588f4bdf3ac81’,

expiry: 1800

},

cdn: {

url: 'https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png’,

absolute_url: 'https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png’,

relative_url: ‘jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png’

}

}

Public access url response: {

“urls”: [

{

“url”: "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png",

“signed_url”: "https://storage.googleapis.com/jiomart-staging-assets-private/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=4342514435-compute%40developer.gserviceaccount.com%2F20231127%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20231127T111141Z&X-Goog-Expires=30000&X-Goog-SignedHeaders=host&X-Goog-Signature=0c9e4e97f84028a37807cec5a5e9a48949464424935a4556e7793a713eef5d15963899c34e3ed3453ea4edf64b44b5ac8923187b2eac7bf406cfe62d7651532cbfa55c84ad1b47a48663b0457c38b25635fd770805bb51ff231c81ad3ce9f90ac50bf11603860330c376e6b602cc9eba86095b91a0051d54ebf977197a3df8173a01fefb026f53eb527d1027415e1e9551cb3e75de16c8df4a1a772340ddde0a171e5c3d34092d2d278f0864e5c5043d201feba229db2b1eb971d1423dc7efb042cb0ce8de29f1f0b704f53536b662f5238962f4de3af3b64c2a1d91451e937d06506b2df5fb3851e1bd7191893d215891bc74f2ff5808e957746927d2ae710c",

“expiry”: “30000”

},

{

“url”: "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png",

“signed_url”: "https://storage.googleapis.com/jiomart-staging-assets-private/jmrtz0/platform/extensions/novus-cms/private/original/TL2BQCHix-Untitled-design.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=4342514435-compute%40developer.gserviceaccount.com%2F20231127%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20231127T111141Z&X-Goog-Expires=30000&X-Goog-SignedHeaders=host&X-Goog-Signature=0c9e4e97f84028a37807cec5a5e9a48949464424935a4556e7793a713eef5d15963899c34e3ed3453ea4edf64b44b5ac8923187b2eac7bf406cfe62d7651532cbfa55c84ad1b47a48663b0457c38b25635fd770805bb51ff231c81ad3ce9f90ac50bf11603860330c376e6b602cc9eba86095b91a0051d54ebf977197a3df8173a01fefb026f53eb527d1027415e1e9551cb3e75de16c8df4a1a772340ddde0a171e5c3d34092d2d278f0864e5c5043d201feba229db2b1eb971d1423dc7efb042cb0ce8de29f1f0b704f53536b662f5238962f4de3af3b64c2a1d91451e937d06506b2df5fb3851e1bd7191893d215891bc74f2ff5808e957746927d2ae710c",

“expiry”: “30000”

}

]

}. CC: @Beermohamed_S1

@Deepak_Basumatary For uploading the Image using Extension, we need to install pixel bin extension. please provide me the access and credentials for doing the same. CC: @Beermohamed_S1