Upon searching for a file with the filter of "File Name" it does not return the file I have just uploaded. The file is being uploaded via the api, and I can confirm the file is there in the dropbox web UI. But when the api searches for the file, it does not find the file.
For exmple I have the file I need in folder 2019-09-04, I get the list of folders:
That's correct, there can be a delay on search results for recent changes due to indexing lag.
Depending on your use case though, some other endpoints may be more useful to you.
For instance, since you mentioned you're uploading via the API, note that the /2/files/upload endpoint returns the metadata for uploaded file directly in the response for the upload call, so you can use that immediately upon finishing the upload.
Or, if you know the exact file path or ID and need to retrieve the metadata again later, /2/files/get_metadata would be the best way to get it.
Well, we know it can be hard to keep up good habits, so we made a new working from home cheat sheet, with some good habits, some things to avoid and some tips for making your day a little easier. Check it out here.
Work Smarter with Dropbox
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.