You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

axew3's avatar
axew3
Collaborator | Level 8
9 years ago

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.
  • axew3's avatar
    axew3
    Collaborator | Level 8

    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 Staff rankDropbox Staff
      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

        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?