Skip to content

How to programmatically upload a file to a Dropbox File Request link from iOS (SwiftUI)? #446

@WebGuruIOS

Description

@WebGuruIOS

Summary

I am building an iOS app using SwiftUI, and I have local file URLs ([URL]) generated within the app. I would like to programmatically upload these files to a Dropbox File Request URL (e.g. https://www.dropbox.com/request/XYZ...).

What I Tried

  • I attempted using WKWebView to load the file request link and inject JavaScript to pre-fill or simulate file input selection — but this does not work due to iOS sandboxing and gesture restrictions.
  • The files.upload(path:..., input:...) API from the Dropbox SDK doesn't work, since File Request URLs are not API-accessible paths.
  • I couldn't find any Dropbox API documentation that allows programmatically sending files to a File Request endpoint.

Question

➡️ Is it possible to upload a file from an iOS app (Swift or SwiftUI) to a Dropbox File Request URL programmatically?
➡️ If not, is there a recommended workaround to help users complete this flow smoothly?

Thanks in advance for any clarification or guidance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions