Forum Discussion

jgroen's avatar
jgroen
New member | Level 2
9 years ago

Create Sharelink issues for files not uploaded yet

I set this parameter before generating a sharelink: dropbox.sharing.PendingUploadMode.folder

This works fine as long if I don`t go deeper that one (not yet indexed folder) folder.
So if create folder/folder2 and they are not indexed yet the API will throw an error on generating a sharelink for folder2.

I understand this behaviour. Dropbox can not know (yet) which parent folders exist and therefore throws a lookup error. Is there any way to work around this? We sometimes add a lot of files which causes delays in indexing (and therefore the generate sharelink issues)

 

Example of error: 

updateApiError('5c3ff85396c07b0dc59c6b5e53703877', CreateSharedLinkError(u'path', LookupError(u'not_found', None)))

3 Replies

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

    There isn't an option to change that behavior, so the only workaround that comes to mind is to explicitly create the parent folder(s) first. We'll consider it a feature request for a better way to do this though.

  • jgroen's avatar
    jgroen
    New member | Level 2
    9 years ago

    Gotcha. Can you tell me how the official Dropbox client handles this particular situation? Would it also fail, or does it use the workaround? Many thanks

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    The official Dropbox client works in a very different way entirely, so it isn't a useful comparison unfortunately.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from 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!