transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.03k stars 2k forks source link

Dropbox file selection issue #5267

Open sahilNVI opened 3 months ago

sahilNVI commented 3 months ago

Initial checklist

Link to runnable example

No response

Steps to reproduce

I’m currently facing an issue while integrating Dropbox with my application. I’m using the Uppy (Core, Dashboard, remote-source and companion) library to handle file uploads and imports from Dropbox. However, I’m encountering a CORS policy error and an HTTP 400 error when trying to list folders in Dropbox.

Expected behavior

I should be able to select and upload files from my Dropbox account.

Actual behavior

image

HTTP 400: Error in call to API function "files/list_folder": request body: path: '%2Fphotos' did not match pattern '(/(.|[\r\n]))?|(ns:[0-9]+(/.)?)'

mifi commented 3 months ago

Hi. so you're getting this error but it still lists successfully? (I can see that you do have a list of folders there in your screenshot)

sahilNVI commented 3 months ago

Yes, I'm able to login but I cannot open these folders and even upload any files.

mifi commented 2 months ago

could you provide some more info? are you hosting companion yourself or using transloadit.com companion? are you using companion stand-alone? what is your config? could you provide a runnable example for example with stackblitz.com or codesandbox?