Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Marius L.1's avatar
Marius L.1
New member | Level 1
9 years ago

Files uploaded but not in dropbox directory

Hi

I use the files_upload function and get a result back that, as far as I can tell, is a successful transfer but the files is not in my dropbox. Can anyone tell from the response if there is an error on my side. I dont know what to look for in this result.

result = FileMetadata(name=u'Thursday 19 May 2016 08:11:32PM.jpg', path_lower=u'/sentry/thursday 19 may 2016 08:11:32pm.jpg', path_display=u'/sentry/Thursday 19 May 2016 08:11:32PM.jpg', id=u'id:4DxFpPbFiSAAAAAAAAAAAQ', client_modified=datetime.datetime(2016, 5, 19, 18, 11, 36), server_modified=datetime.datetime(2016, 5, 19, 18, 11, 36), rev=u'2453de36221', size=51283, parent_shared_folder_id=None, media_info=None, sharing_info=None, property_groups=None, has_explicit_shared_members=None)

 

4 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    That response indicates the upload was successful. Are you sure you're looking at the right account when you look for the uploaded file? You can use the account information call to check what account you're linked to via the API for comparison.

    Also, if your app uses the "app folder" permission, note that the path "/sentry/Thursday 19 May 2016 08:11:32PM.jpg" via the API will correspond to the path "/Apps/<app folder name>/sentry/Thursday 19 May 2016 08:11:32PM.jpg" in the account.

  • Marius L.1's avatar
    Marius L.1
    New member | Level 1
    9 years ago

    Under my files heading I have this /Apps/sentry.

    This is my code to enable the dropbox

     

    if conf["use_dropbox_v2"]:
        client = dropbox.Dropbox(conf["access_token"])
        print "[SUCCESS] dropbox account linked"

     

    I have done a manual auth using V1 API and the directory was created in my account.

    This is the manual code for V1

    if conf["use_dropbox"]:
        # connect to dropbox and start the session authorization process
        flow = DropboxOAuth2FlowNoRedirect(conf["dropbox_key"], conf["dropbox_secret"])
        print "[INFO] Authorize this application: {}".format(flow.start())
        authCode = raw_input("Enter auth code here: ").strip()

        # finish the authorization and grab the Dropbox client
        (accessToken, userID) = flow.finish(authCode)
        client = DropboxClient(accessToken)
        print "[SUCCESS] dropbox account linked"

     

  • Marius L.1's avatar
    Marius L.1
    New member | Level 1
    9 years ago

    Hi Gregory

    Just for feedback. That response means nothing as the API gives that even if the it does not connect. I had to delete the app and start from scratch do get it to work. It appears that the system thought that the app folder was deleted when it was in fact still ppresent. The strange thing is that it was working before.

    The only problem I have now is that my app name is still in the system although I cannot see it anywhere. I used a replacement name but I would like to use the original name. How do I go about fixing that?

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!