FileImage

Parent
Relationships
File Access
Initialise the FileImage Object
const {
  	FileImage
} = require('@plattar/plattar-api');

// FileImage holds image data in .jpg, .png, .webp, .basis formats
const file = new FileImage('your-fileimage-id');

file.get().then((file) => {
	// this is the full url path to download this file
	const downloadPath = file.path;

	// this is the full url path to download the backup zip of this file
	const backupPath = file.backupPath;
}).catch((error) => {
	console.error(error);
});