Highlighted
ratish777
6 Indium

GetShareableUrl

Jump to solution

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=2cb3b7d37...). However when I use the GetShareableUrl method it returns the URL without the file extenstion (example:https://cloudonestorage.peer1.com/rest/objects/4b0ab729a2230dac04ce3ff6f6783004ed6375be882b?uid=2cb3...).

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

Please help.

Thanks in advance,

Ratish

0 Kudos
1 Solution

Accepted Solutions
8 Krypton

Re: GetShareableUrl

Jump to solution

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.

0 Kudos
3 Replies
8 Krypton

Re: GetShareableUrl

Jump to solution

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.

0 Kudos
DarrenSoothill
6 Indium

Re: GetShareableUrl

Jump to solution

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 <emc-community-network@emc.com<mailto:emc-community-network@emc.com>>

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

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

To: Darren Soothill <darren.soothill@emc.com<mailto:darren.soothill@emc.com>>

Subject: New message: "GetShareableUrl"

EMC Community Network<https://community.emc.com/index.jspa>

GetShareableUrl

created by ratish777<https://community.emc.com/people/ratish777> in Atmos - View the full discussion<https://community.emc.com/message/579440#579440

ratish777
6 Indium

Re: GetShareableUrl

Jump to solution

Thanks guys it worked

0 Kudos