Files

Files

Source:

Functions and objects related to file upload, download, and storage

Members

(static) downloadManager :FileDownloadManager

Set up a URL for downloading the files

Source:
See:
Type:
  • FileDownloadManager

(static) fileWorker :TempFileStoreWorker

Start a worker to watch for finished uploads, store them permanantly, and then remove the temporary file

Source:
See:
Type:
  • TempFileStoreWorker

(static) Media :MongoFileCollection

Defines the Media FileCollection To learn how to further manipulate images with Sharp, refer to Sharp Docs

Source:
See:
Type:
  • MongoFileCollection

(static) Media :MeteorFileCollection

Defines the Media FileCollection To learn how to further manipulate images with Sharp, refer to Sharp Docs

Source:
See:
Type:
  • MeteorFileCollection

(static) remoteUrlWorker :RemoteUrlWorker

Start a worker to watch for inserted remote URLs and stream them to all stores

Source:
See:
Type:
  • RemoteUrlWorker

(static, constant) stores :Array

Defines an array of GridFSStore by mapping the imgTransform settings over the buildGFS function

Source:
Type:
  • Array

(static) tempStore :TempFileStore

Defines the temporary store where chunked uploads from browsers go initially, until the chunks are eventually combined into one complete file which the worker will then store to the permanant stores.

Source:
See:
Type:
  • TempFileStore

Methods

(static) buildGFS(imgTransform)

buildGFS returns a fresh GridFSStore instance from provided image transform settings.

Source:
Parameters:
Name Type Description
imgTransform object