<< Back to GForge REST API

Entity: Filesystem

GET

getFilesystem

Given a file object, returns the thumbnail image representing the file. The following file rules apply:

  1. If an existing thumbnail exists, it is returned.
  2. For image files (PNG, JPG, BMP, etc.), a scaled-down version of the original is created.
  3. For PDF documents, a screen shot of the first page is created, and then scaled as an image.

Parameters (1)

Name Type Description
request \mvcnphp\RequestParameters

Return: mixed

The binary data for the image that was produced (or already cached).

getThumbnail

Given a file object, returns the thumbnail image representing the file. The following file rules apply:

  1. If an existing thumbnail exists, it is returned.
  2. For image files (PNG, JPG, BMP, etc.), a scaled-down version of the original is created.
  3. For PDF documents, a screen shot of the first page is created, and then scaled as an image.

Parameters (1)

Name Type Description
request \mvcnphp\RequestParameters

Return: mixed

The binary data for the image that was produced (or already cached).

POST

postChunk

Parameters (1)

Name Type Description
request \mvcnphp\RequestParameters

Return: string[]

postFilename

Parameters (1)

Name Type Description
request \mvcnphp\RequestParameters

Return: array

postFilesystem

Creates/updates the metadata for a filesystem object, returns the url to PUT the file

Parameters (1)

Name Type Description
request \mvcnphp\RequestParameters

Return: array

PUT

DELETE