Merged
Conversation
- Allow to pass `fileName` property to `.insert()` method (see #100) - Minor code enhancements
- Fix #97 - If user not logged in or package `accounts-base` isn’t installed `.user()` method always returns `null` - Fix issue when `userId` was `null` in browsers with no localStorage support - __Major change__: `. checkAccess()` (`.protected()`) methods isn’t called anymore on `.find()`, `.findOne()`, `.remove()`, `.insert()`. Use `onBeforeRemove` and `onBeforeUpload` callbacks to control user access
- Property `ext` on *fileRef* is __deprecated__ use __extension__ instead
- Implementation of Cursor for `.findOne()` the `FileCursor` - Implementation of Cursor for `.find()` the `FilesCursor`
- Add `config.onAfterRemove` callback, see #114
- Compatibility with Meteor@1.3.4.1 - Full integration with AWS S3 - New API compatibility - Other fixes and enhancements
GridFS example
- Big thanks to @epaminond for investigation, see #114 - From v1.6.0 minimum required version of Meteor is `1.3.3.1`
- `ostrio:files` package was awarded in [GCAA 2016](https://themeteorchef.com/blog/giant-cotton-apron-awards-show) as simple, smooth and versatile file-upload package - Support for `METEOR@1.3.4.1` - Implementation of Cursor for `.findOne()` as the `FileCursor` - Implementation of Cursor for `.find()` as the `FilesCursor` - `updatedAt.autoValue` is removed from default schema, now this field is optional - `_prefix` is removed from default schema - Default schema now has `isPDF` property - If user not logged in or package `accounts-base` isn’t installed `.user()` method always returns `null` - Update dependency to fixed cookie package - Implement queue stream - to make 100% sure chunks is written in desired order - Constructor: `config.continueUploadTTL` {*Number*} - [Server] Time in seconds, during upload may be continued, default 3 hours (10800 seconds) - Constructor: `config.onAfterRemove` {*Function*} - [Server] callback, see #114 - Constructor: `config.collection` {Mongo.Collection} - [Both] MongoDB Collection Instance - Latency compensation for `estimateTime` - Major fixes an improvements in file streaming - Better debug logs - Better memory management - Remove dependency to `sha` package - Send over the wire as small amount of meta-data, as possible - Fix `finishUpload` - now it is emitted only after file is fully written to FS - Fix when sending `Date()` Object over HTTP upload in `meta` Object - Fix issue when `userId` was `null` in browsers with no localStorage support - Fix for `fileRef` passed into `protected` callback - Fix upload when first chunk isn’t actually first - Fix resume upload in `http` transport - Fix `.continue()` after broken connection - Fix when file loaded via `.load()` method has no `content-length` and/or `content-type` headers - Fix #114 - Fix #100 - Allow to pass `fileName` property to `.insert()` method - Fix #103 - Fix #99 - Fix #97 - [AWS:S3 Integration example](https://github.com/VeliovGroup/Meteor-Files/wiki/AWS-S3-Integra tion) __Breaking changes__: - Minimum required version of Meteor is `1.3.3.1` - `. checkAccess()` (`.protected()`) methods isn’t called anymore on `.find()`, `.findOne()`, `.remove()`, `.insert()`. Use `onBeforeRemove` and `onBeforeUpload` callbacks to control user access - Implement Cursor for `FilesCollection`, as `FileCursor ` - Methods `.find()` and `.findOne()` now always returns `FileCursor` instance - Methods `.get()` and `.fetch()` now moved to `FileCursor`, and not available on `FilesCollection` instance - `onBeforeUpload()` callback now receives `FileCursor` as argument - `.link()` method is requires first argument - All internal methods, events and properties now has `_` prefix - Property `ext` on *fileRef* is __deprecated__ use __extension__ instead [Demo Application](https://files.veliov.com) - Use AWS:S3 as storage - New design - PDF preview - GitHub Markdown support and highlighting - Basic SEO - Valid Schema.org markup - Accounts: Now you can login via Facebook, Twitter, GitHub or Meteor account. And have your private or unlisted files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ostrio:filespackage was awarded in GCAA 2016 as simple, smooth and versatile file-upload packageMETEOR@1.3.4.1.findOne()as theFileCursor.find()as theFilesCursorupdatedAt.autoValueis removed from default schema, now this field is optional_prefixis removed from default schemaisPDFpropertyaccounts-baseisn’t installed.user()method always returnsnullconfig.continueUploadTTL{Number} - [Server] Time in seconds, during upload may be continued, default 3 hours (10800 seconds)config.onAfterRemove{Function} - [Server] callback, see GridFS example #114config.collection{Mongo.Collection} - [Both] MongoDB Collection InstanceestimateTimeshapackagefinishUpload- now it is emitted only after file is fully written to FSDate()Object over HTTP upload inmetaObjectuserIdwasnullin browsers with no localStorage supportfileRefpassed intoprotectedcallbackhttptransport.continue()after broken connection.load()method has nocontent-lengthand/orcontent-typeheadersfileNameproperty to.insert()methodBreaking changes:
1.3.3.1. checkAccess()(.protected()) methods isn’t called anymore on.find(),.findOne(),.remove(),.insert(). UseonBeforeRemoveandonBeforeUploadcallbacks to control user accessFilesCollection, asFileCursor.find()and.findOne()now always returnsFileCursorinstance.get()and.fetch()now moved toFileCursor, and not available onFilesCollectioninstanceonBeforeUpload()callback now receivesFileCursoras argument.link()method is requires first argument_prefixexton fileRef is deprecated use extension insteadDemo Application