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

lymanhurd's avatar
lymanhurd
Explorer | Level 3
2 years ago

Python SDK: Can one identify email address for a specific file upload?

I have an app which is restricted to a single folder which polls for received uploads, downloads the file, processes it and then uploads the result.  At this point I need to inform the original uploader and share the new file with them.  Is there a way to do this short of creating a custom folder per uploader?

  • Greg-DB's avatar
    Greg-DB
    2 years ago

    lymanhurd Thanks for following up and clarifying. Dropbox does not offer an API for retrieving the specific details for file request submissions like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, you'd need to create unique file requests/folders as you mentioned.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    lymanhurd wrote:

    ...  At this point I need to inform the original uploader and share the new file with them.  Is there a way to do this short of creating a custom folder per uploader?


    Hi lymanhurd,

    You can upload/create a file/folder, wherever/whenever you want to, in the users account. Since every account is assigned to particular user (probably the one that upload processed content), creating something in the particular account is that what you're "sharing" it with that user (if shared content, maybe more users). If you mean something else, clarify it.

    About to your intent to inform the user, it's done by default by Dropbox. You can forbid it, if/when desirable, explicitly using "mute" flag during upload/finishing.

    Hope this helps.

    • lymanhurd's avatar
      lymanhurd
      Explorer | Level 3

      I apologize for a lack of clarity.  Let me elaborate further, and thank you for responding.

       

      I am not assuming that my "customers" have a Dropbox account.  I am asking them to upload a file to my Dropbox account and then I have an automated process hosted in the AWS cloud which uses the Python SDK to download the file to be processed and subsequently upload the processed file to Dropbox, again to my Dropbox,  and then notifying the original poster that their processed file is available for them to download.

       

      I know that I could engineer the workflow so that I create a folder per customer and then it would be clear who to reply to.  I was wondering if there was a more efficient way to accomplish this, which could be done if I could retrieve which files were uploaded as a result of which file requests (clearly having each file request have its own folder is one way to distinguish).  Thanks.

       

      I strongly suspect, from viewing analogous questions that the answer is "no", but I did not find an answer that I thought definitively answered exactly this question and also some of the relevant posts were three years old!

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        lymanhurd Thanks for following up and clarifying. Dropbox does not offer an API for retrieving the specific details for file request submissions like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, you'd need to create unique file requests/folders as you mentioned.

    • lymanhurd's avatar
      lymanhurd
      Explorer | Level 3

      I apologize for the language difficulties.  Let me break it down further.  And, yes everything I am doing is using the Python SDK.

       

      1) I request a file from bob@example.com which in the simplest case ends up in a folder with requests from jane@example.com etc.

      2) A batch program looks at files in the directory.  I see that I can query for a list of requests and for each request get a count of files uploaded.  What I want to know is, for example, assuming the count is 1 in both cases and the folder now contains file1.txt and file2.txt, how do I determine by means of he Python SDK which file was sent in response to which request.

      I have read the entirety of the requests documented in https://dropbox-sdk-python.readthedocs.io/en/latest/api/file_requests.html but do not see that it contains a solution.

       

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 9 minutes ago
325 Following

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 or Facebook.

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!