Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1497

December 5th, 2011 08:00

GetShareableUrl

Hi,

I want to let my users download the file directly from the Cloud server using GetShareableUrl method which will give them the URL.

When I use Atmos Fox Organizer (mozilla plugin) I get the URL along with the file extenstion (example:https://cloudonestorage.peer1.com/rest/namespace/MH2011NOVM11_1137092638_978607925.pdf?uid=2cb3b7d371d647c4a469db60a13e3add%2F6131312&expires=1323105914&signature=dLvaF2fEuHzGXrh6VEo5qxwdOQ4%3D). However when I use the GetShareableUrl method it returns the URL without the file extenstion (example:https://cloudonestorage.peer1.com/rest/objects/4b0ab729a2230dac04ce3ff6f6783004ed6375be882b?uid=2cb3b7d371d647c4a469db60a13e3add/6131312&expires=1323125815&signature=zEwJ42ILZ4O3boO/gdrNWQiMui4=).

Is there any way by which I can display the URL which has the file extension?

Please help.

Thanks in advance,

Ratish

281 Posts

December 5th, 2011 08:00

Hi Ratish,

When you call getShareableUrl, make sure you pass in the ObjectPath, not the ObjectId.  If you look at the URLs above, you'll see that the one you generated has "/rest/objects" in the URL indicating that you requested a shareable URL for the ObjectId.

December 5th, 2011 08:00

What mode are you putting the object into the platform in? Namespace or object mode.

The Atmos Fox looks like it has used namespace hence the reason for knowing the file extension as it knows the filename.

The second method looks like you are using the object id which knows nothing about the original filename.

Darren

From: ratish777 >

Reply-To: "jive-1025188684-oqk-2-cf3k@emc-developer.hosted.jivesoftware.com " >

Date: Mon, 5 Dec 2011 11:34:10 -0500

To: Darren Soothill >

Subject: New message: "GetShareableUrl"

EMC Community Network

GetShareableUrl

created by ratish777 in Atmos - View the full discussion

16 Posts

December 6th, 2011 06:00

Thanks guys it worked

No Events found!

Top