Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file representation not created during file upload #195

Open
charleswg opened this issue Jan 5, 2021 · 3 comments
Open

file representation not created during file upload #195

charleswg opened this issue Jan 5, 2021 · 3 comments

Comments

@charleswg
Copy link

Great toolbox developer!

Is there anyway to create the file representation automatically after file upload? When Box sync the files, appropriate file representations are created automatically. It'd be good to replicate this process.

@nathancday
Copy link
Member

Are you referring to the file ID on Box?

If so:

b <- box_ul("some_file.csv", 0)
b$id

@charleswg
Copy link
Author

charleswg commented Jan 6, 2021 via email

@nathancday
Copy link
Member

Looks like there is an API for that:
https://developer.box.com/reference/get-files-id-thumbnail-id/

I'm guessing the thumbnail doesn't get generated until it hits Box's servers, so if you track the ID from code example above you could craft the API request as a follow up action.

This is the first request for thumbnails and we don't have any plans to work on it right now. But if you'd like to make a PR we would consider including it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants