Drive > Files > File/Directory
Preview
Changed onGet file preview.
get/2/drive/{drive_id}/files/{file_id}/preview
Request
- Base URLhttps://api.infomaniak.com
- URLhttps://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}/preview
- AuthHTTP bearer
Path parameters
drive_idinteger required
Drive identifier
file_idinteger required
File identifier
Query parameters
as'pdf' | 'text'
Convert file before preview
heightinteger
The height of the preview. <note>This parameter only works on image</note>
qualityinteger
The quality of the preview. <note>This parameter only works on image</note>
version_idinteger
Version identifier of this file
widthinteger
The width of the preview. <note>This parameter only works on image</note>
Headers
x-kdrive-file-passwordstring
File password to open it for conversion, if the file is password-protected
Response
OK
Changes
- warning
added the new
file_scan_status_not_safe_errorenum value to the//response property for the response status
- warning