Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

axew3's avatar
axew3
Collaborator | Level 8
10 years ago
Solved

create_shared_link: stdClass Object ( [error_summary] => path/not_found/.. [error]

Hello ... i'm stuck in a stupid thing.

Two different methods, one create folder, the other create_shared_link_with_settings.

I create a folder, so i create a shared link for it immediately after, all work ok.

 

I so try to call on another part of the code, the same method create_shared_link_with_settings, which return, constantly

stdClass Object ( [error_summary] => path/not_found/.. [error] => stdClass Object ( [.tag] => path [path] => stdClass Object ( [.tag] => not_found ) ) )

 

I've try to pass empty json values like:

$data = '{"path" : "/test" , "settings" : {}}';
Or
$data = '{"path" : "/test"}';

but the error is ever the same. What hell i can be wrong into?

I think the json passed on curl call is the same, but do not work. Any idea?

  • Yes, as an app folder app, you can only operate on items inside the app folder. Full Dropbox apps can operate on any item in the account.

8 Replies

Replies have been turned off for this discussion
  • axew3's avatar
    axew3
    Collaborator | Level 8
    10 years ago

    p.s of course, the folder /test exist into dropbox root.

    p.s i want to set a link for the folder /Apps in true, but the above do not work with any folder. The json that is send out on call is the same of the one that work, and i'm feeling like a stupid right now, after hours.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago
    One thing that comes to mind is that if your app is registered for the "app folder" permission, your paths should be relative to the app's app folder, not the Dropbox root. Further, in that case you won't be able to access folders or files in the Dropbox root.

    Otherwise, it's hard to say what the issue may be offhand. If you're still having trouble, can you open a ticket with the app name, user ID, and code you're using with the real values? Thanks in advance!
  • axew3's avatar
    axew3
    Collaborator | Level 8
    10 years ago

    Ok thank you, i will try little more, so will in case ticket the problem. As i can see looking behavior on dropbox.com, for the /Apps folder i can create a shared link, while i can't for 'root folder inside Apps', related to the app and always available.

    Can i create_shared_link_with_settings for the /Apps folder, isn't it?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago
    You should be able to create a shared link for any file or folder on dropbox.com. Likewise, you should be able to create a shared link for any file or folder using the API, as long as your app can access it. (App folders can't see items outside their app folder.)

    Also, note that "shared links" are a different feature than "shared folders". You can't make app folders into shared folders.
  • axew3's avatar
    axew3
    Collaborator | Level 8
    10 years ago

    Thank for all info Greg ... it seem impossible to me but, but it suddenly work now! ... +- I would start to cry ... as i have not understand why! Same code. But ok! Hope the reason will become clear going on ...

  • axew3's avatar
    axew3
    Collaborator | Level 8
    10 years ago

    to complete the above, just testing, it seem to me that (maybe i'm wrong):
    While the app is a Folder App you can set as shared, only existent folders inside Apps/your_app/
    You can instead set as shared any folder, when your app is a Full Dropbox app.

    The annoying queston ... isn't it?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago
    Yes, as an app folder app, you can only operate on items inside the app folder. Full Dropbox apps can operate on any item in the account.
  • axew3's avatar
    axew3
    Collaborator | Level 8
    10 years ago
    I had say it was a stupid think ... what crazy .... going to improve my english ... bump :)

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!