.png or as .jpg that can be used in
an application as a representation of the file, for example as a placeholder for
a link that downloads or previews the file.
The preferred way to get a thumbnail for a file is using the
representations API.
Requesting
To request a file thumbnail use theGET /files/:id/thumbnail.:extension
endpoint.
Asynchronous thumbnail creation
Sometimes the thumbnail can not be created directly. Instead, the API will return aHTTP 202 with a location response header. The location
is for a temporary image that can be used while the thumbnail is being
generated.
A retry-after response header is also provided to present you with
an estimated amount of seconds before retrying this endpoint.
Supported file sizes
The following formats and sizes of thumbnails are available.| File Type | Dimensions |
|---|---|
| JPG | 32x32, 94x94, 160x160, 320x320, 1024x1024, 2048x2048* |
| PNG | 1024x1024*, 2048x2048* |
*.
File size restrictions
Original file size
Thumbnails are not scaled up. If the original file size of the file uploaded to Box is smaller than the representation dimensions, the resulting thumbnail is capped at the size of the original file.Supported file types
At this time the following file types are supported.| File Type | File Extensions |
|---|---|
| Documents | doc, docx, gdoc, gsheet, gslide, gslides, odp, ods, odt, pdf, ppt, pptx, rtf, wpd, xls, xlsm, xlsx, key, pages, numbers |
| Images | ai, bmp, dcm, dicm, eps, gif, idml, indd, indt, inx, jpeg, jpg, png, ps, psd, svg, svs, tif, tiff, tga |
| Audio | aac, aifc, aiff, amr, au, flac, m4a, mp3, ogg, ra, wav, wma |
| Video | 3g2, 3gp, avi, m2v, m2ts, m4v, mkv, mov, mp4, mpeg, mpg, mts, ogg, qt, wmv |
