Skip to content
dr.dimitru edited this page Jun 29, 2022 · 36 revisions

Meteor-Files Documentation

Explore documentation and examples for files' upload and its custom integration into Meteor.js application

ToC:

Browse documentation directory or navigate using lost of links below.

About:

Meteor-Files library features and highlights

  • Event-driven API
  • TypeScript Definitions
  • Upload / Read files in Cordova app: Cordova support (Any with support of FileReader)
  • File upload:
    • Upload via HTTP or DDP, read about difference
    • Ready for small and large files (optimized RAM usage)
    • Pause / Resume upload
    • Auto-pause when connection to server is interrupted
    • Parallel multi-stream async upload (faster than ever)
    • Support of non-Latin (non-Roman) file names
  • Use third-party storage:
  • Get upload speed
  • Get remaining upload time
  • Serving files (download):
    • Custom download route
    • Download compatible with small and large files, including progressive (chunked) download
    • Correct mime-type and Content-Range headers
    • Correct 206 and 416 responses
    • Following RFC 2616
    • Control access to files
    • Files CRC check (integrity check)
    • Serve public files with a server like nginx
  • Write to file system (fs.):
    • Automatically writes files on FS and special Collection
    • path, collection name, schema, chunk size and naming function is under your control
    • Support for file subversions, like thumbnails, audio/video file formats, revisions, and etc.
  • Store wherever you like:
    • You may use Meteor-Files as temporary storage
    • After file is uploaded and stored on FS you able to mv or cp its content, see 3rd-party storage integration examples
  • Subscribe on files (collections) you need

API:

Demos:

Examples:

Related packages: