I was working with dropbox sync api on android platform, all seems to work smoothly except following case: When i upload a file on dropbox which has no extension, then a call to listFolder(dbxPath) does not return file that had no extension.

I am uploading file through Linux platform, e.g A filename XYZ which is text file on linux. but when i changing the filename of the same file to XYZ.txt, then, listFolder(dbxPath) returns the info about file.

It would be nice if someone explain this behavior, and possible solution too (as dropbox application is able to show XYZ file).

有帮助吗?

解决方案

Moving this to an answer... the issue is that you have "documents" permission, and that doesn't include extensionless files.

See https://www.dropbox.com/developers/reference/devguide#app-permissions for the full list of file extensions supported by each file type.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top