Forum Discussion

DataDude's avatar
DataDude
Explorer | Level 3
6 years ago

Trying to shared uploaded files so that third party eCommerce app can read them

I am stuck between WooCommerce and DropBox.  WooCommerce can read a product image from a any public url.

 

code:

public async Task<string> GetUrl(string path)
{

var tl = await dbx.Files.GetTemporaryLinkAsync(path);
return tl.Link;

}

Returned Url (portions removed for clarity)

"https://content.dropboxapi.com/apitl/1/AfZz93nWrLwDH...wtTPaQ"

 

This URL will allow a browser to download the image, but is there a way to get a direct URL?

Such as "https://content.dropboxapi.com/folder1/ImageAAA123.jpg"?

 

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    Can you elaborate on what the issue is, or what functionality exactly you need? The "https://content.dropboxapi.com/apitl/1/..." kind of link is already a direct link to the specified file's data. It just doesn't happen to end in the file name/extension, but it does link to the file content. If accessed directly in the browser, it is configured to download the content, but another app can also just read from the link if desired.

  • DataDude's avatar
    DataDude
    Explorer | Level 3
    6 years ago

    Thank you Greg.  Based on what you are saying, perhaps the problem is on WooCommerce's side.  WooCommerce is giving me an error when I provide the URL generated by DropBox.  I will do some more testing.

     

    Thank you again for your help!

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!