Repository navigation
Home
dr.dimitru edited this page May 4, 2020
·
36 revisions
|
This package is the GCAA Winner 2016. Big thanks to Benjamin Willems and Ryan Glover (The Chef) and all The Meteor Chef team! |
Please see our experimental webrtc-data-channel branch. Feedback is highly appreciated!
- Event-driven API
- TypeScript Definitions
- Upload / Read files in Cordova app: Cordva support (Any with support of
FileReader) - Upload via HTTP, RTC/DC or DDP, read about difference
- File upload:
- Ready for small and large files (RAM used only for chunk reading - read about
chunkSize) - Pause / Resume upload
- Auto-pause when connection to server is interrupted
- Multi-stream async upload (faster than ever)
- Ready for small and large files (RAM used only for chunk reading - read about
-
Use third-party storage:
- AWS S3
- DropBox
- GridFS using
GridFSBucket - GridFS using
gridfs-stream(legacy) - Google Drive
- Google Storage
- any other with JS/REST API
- Display upload speed
- Display remaining upload time
- Serving files:
- Make files
public, so your proxy server like nginx can serve them - Protect/Restrict access to files
- Files CRC check (integrity check)
- Make files
- 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.
- Streaming via HTTP:
- Correct
mime-typeandContent-Rangeheaders - Correct
206and416responses - Following RFC 2616
- Correct
- Download via HTTP:
- You able to specify
route - Download is ready for small and large files, with support of progressive (
chunked) download
- You able to specify
- Store wherever you like:
- You may use
Meteor-Filesas temporary storage - After file is uploaded and stored on FS you able to
mvorcpits content, see 3rd-party storage integration examples
- You may use
- Support of non-Latin (non-Roman) file names
- Subscribe on files (collections) you need
-
FilesCollectionConstructor [Isomorphic] - Initialize FilesCollection -
FileCursorClass - Instance of this class is returned from.findOne()method-
remove(callback)- {undefined} - Remove document -
link()- {String} - Returns downloadable URL to File -
get(property)- {Object|mix} - Returns current document as a plain Object -
fetch()- {[Object]}- Returns current document as plain Object in Array -
with()- {FileCursor} - Returns reactive version of current FileCursor
-
-
FilesCursorClass - Instance of this class is returned from.find()method-
fetch()- {[Object]} - Returns all matching document(s) as an Array -
count()- {Number} - Returns the number of documents that match a query -
remove(callback)- {undefined} - Removes all documents that match a query -
forEach(callback, context)- {undefined} - Callcallbackonce for each matching document -
each()- {[FileCursor]} - Returns an Array ofFileCursormade for each document on current Cursor -
observe(callbacks)- {Object} - Functions to call to deliver the result set as it changes -
observeChanges(callbacks)- {Object} - Watch a query. Receive callbacks as the result set changes - See all methods
-
- Default Collection Schema
-
write()[Server] - WriteBufferto FS and FilesCollection -
load()[Server] - Write file to FS and FilesCollection from remote URL -
addFile()[Server] - Add local file to FilesCollection from FS -
findOne()[Isomorphic] - Find one file in FilesCollection -
find()[Isomorphic] - Create cursor for FilesCollection -
insert()[Client] - Upload file to server -
remove()[Isomorphic] - Remove files from FilesCollection and unlink from FS -
unlink()[Server] - Unlink file from FS -
link()[Isomorphic] - Generate downloadable link -
collection[Isomorphic] -Meteor.Collectioninstance -
Template helper
fileURL[Client] - Generate downloadable link in a template
-
tutorialMUP/Docker Persistent Storage - Deploy via MeteorUp to Docker container with persistentstoragePath -
docsThird-party storage (AWS S3, DropBox, GridFS and Google Storage) -
Post-processing:
-
tutorialCreate Thumbnails -
tutorialImage post-processing using AWS Lambda -
code-sampleResize, create thumbnail
-
-
code-sample repcURL/POST upload by @noris666 -
code-sampleFile subversions - Create video file with preview and multiple formats -
tutorialReact.js usage - React with a progress bar and component with links to view, re-name, and delete the files -
tutorialMigrating from CollectionFS/CFS - Live conversion from the depreciated CFS to Meteor-Files (Amazon S3 specifically, but applies to all) -
tutorialGetingFilesCollectioninstance - Retrieve the FilesCollection by it's underlyingMongo.Collectioninstance -
tutorialMigrating / moving GridFS stored files - Three step way of moving/copying/syncing GridFS-stored files between multiple Meteor applications
-
pyfiles(meteor-python-files)) Python Client for Meteor-Files package -
meteor-autoform-file- Upload and manage files with autoForm
- MongoDB with Replica Set & OpLog setup - Find out how to speed-up reactivity in your Meteor application
| Meteor-Files | Support | Try ostr.io |
|---|---|---|
![]() |
If you found this package useful, — star it at GitHub and support our open source contributions with a monthly pledge, or submit a one-time donation via PayPal |
|

