Skip to content

Commit

Permalink
🟨 It's veliovgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Jun 9, 2022
1 parent c59fad1 commit 0199a2f
Show file tree
Hide file tree
Showing 34 changed files with 206 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Version of `Meteor` you're experiencing this issue
- Where this issue appears? OS (Mac/Win/Linux)? Browser name and its version?
- Is it *Client* or *Server* issue?
- Post *Client* and/or *Server* logs with enabled `debug` option, you can enable "debug" mode in [*Constructor*](https://github.com/VeliovGroup/Meteor-Files/wiki/Constructor)
- Post *Client* and/or *Server* logs with enabled `debug` option, you can enable "debug" mode in [*Constructor*](https://github.com/veliovgroup/Meteor-Files/wiki/Constructor)

### I had an issue and I've solved it on my own:
- Provide a description of steps that you've followed to solve the problem
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
For full changelog see [releases on GitHub](https://github.com/VeliovGroup/Meteor-Files/releases)
For full changelog see [releases on GitHub](https://github.com/veliovgroup/Meteor-Files/releases)
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
### I'm having an issue:
1. Search [issues](https://github.com/VeliovGroup/Meteor-Files/issues), maybe your issue is already solved
2. We have useful threads marked as [`In a case of the fire - Read This`](https://github.com/VeliovGroup/Meteor-Files/issues?utf8=✓&q=label%3A%22In%20a%20case%20of%20the%20fire%20-%20Read%20This%22), read them too
1. Search [issues](https://github.com/veliovgroup/Meteor-Files/issues), maybe your issue is already solved
2. We have useful threads marked as [`In a case of the fire - Read This`](https://github.com/veliovgroup/Meteor-Files/issues?utf8=✓&q=label%3A%22In%20a%20case%20of%20the%20fire%20-%20Read%20This%22), read them too
3. Before submitting an issue make sure it's only related to `Meteor-Files` package
4. If your issue is not solved:
- Give an expressive description of what is went wrong
- Version of `Meteor-Files` you're experiencing this issue
- Version of `Meteor` you're experiencing this issue
- Where this issue appears? OS (Mac/Win/Linux)? Browser name and its version?
- Is it *Client* or *Server* issue?
- Post *Client* and/or *Server* logs with enabled `debug` option, you can enable "debug" mode in [*Constructor*](https://github.com/VeliovGroup/Meteor-Files/wiki/Constructor)
- Post *Client* and/or *Server* logs with enabled `debug` option, you can enable "debug" mode in [*Constructor*](https://github.com/veliovgroup/Meteor-Files/wiki/Constructor)

### I had an issue and I've solved it on my own:
- Provide a description of steps that you've followed to solve the problem
- Provide links to websites and/or pages with the information that helped you (*if there are any*)

### I have a suggestion:
1. PRs are always welcome - [send a PR](https://github.com/VeliovGroup/Meteor-Files/compare)
- Always send PRs only to [`dev` branch](https://github.com/VeliovGroup/Meteor-Files/compare/dev), thank you
1. PRs are always welcome - [send a PR](https://github.com/veliovgroup/Meteor-Files/compare)
- Always send PRs only to [`dev` branch](https://github.com/veliovgroup/Meteor-Files/compare/dev), thank you
2. If you're can not send a PR for some reason:
- Create a new issue ticket
- Describe your feature / request
- How you going to use it? Give a usage example(s)

### Documentation is missing something or incorrect (have typos, etc.):
1. PRs are always welcome - [send a PR](https://github.com/VeliovGroup/Meteor-Files/compare)
- Always send PRs only to [`dev` branch](https://github.com/VeliovGroup/Meteor-Files/compare/dev), thank you
1. PRs are always welcome - [send a PR](https://github.com/veliovgroup/Meteor-Files/compare)
- Always send PRs only to [`dev` branch](https://github.com/veliovgroup/Meteor-Files/compare/dev), thank you
2. If you're can not send a PR to docs for some reason:
- Create a new issue ticket
- Give an expressive description what you have changed/added and why
Expand Down
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
For full package history see [releases on GitHub](https://github.com/VeliovGroup/Meteor-Files/releases)
For full package history see [releases on GitHub](https://github.com/veliovgroup/Meteor-Files/releases)
106 changes: 53 additions & 53 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class FilesCollection extends FilesCollectionCore {
* @name fileURL
* @param {Object} fileRef - File reference object
* @param {String} version - [Optional] Version of file you would like to request
* @param {String} uriBase - [Optional] URI base, see - https://github.com/VeliovGroup/Meteor-Files/issues/626
* @param {String} uriBase - [Optional] URI base, see - https://github.com/veliovgroup/Meteor-Files/issues/626
* @summary Get download URL for file by fileRef, even without subscription
* @example {{fileURL fileRef}}
* @returns {String}
Expand Down
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default class FilesCollectionCore extends EventEmitter {
* @name link
* @param {Object} fileRef - File reference object
* @param {String} version - Version of file you would like to request
* @param {String} uriBase - [Optional] URI base, see - https://github.com/VeliovGroup/Meteor-Files/issues/626
* @param {String} uriBase - [Optional] URI base, see - https://github.com/veliovgroup/Meteor-Files/issues/626
* @summary Returns downloadable URL
* @returns {String} Empty string returned in case if file not found in DB
*/
Expand Down
2 changes: 1 addition & 1 deletion cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class FileCursor {
* @memberOf FileCursor
* @name link
* @param version {String} - Name of file's subversion
* @param uriBase {String} - [Optional] URI base, see - https://github.com/VeliovGroup/Meteor-Files/issues/626
* @param uriBase {String} - [Optional] URI base, see - https://github.com/veliovgroup/Meteor-Files/issues/626
* @summary Returns downloadable URL to File
* @returns {String}
*/
Expand Down
2 changes: 1 addition & 1 deletion demo-simplest-download-button/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
301
========

Moved to [Meteor-Files-Demos](https://github.com/VeliovGroup/Meteor-Files-Demos) repository
Moved to [Meteor-Files-Demos](https://github.com/veliovgroup/Meteor-Files-Demos) repository
2 changes: 1 addition & 1 deletion demo-simplest-streaming/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
301
========

Moved to [Meteor-Files-Demos](https://github.com/VeliovGroup/Meteor-Files-Demos) repository
Moved to [Meteor-Files-Demos](https://github.com/veliovgroup/Meteor-Files-Demos) repository
2 changes: 1 addition & 1 deletion demo-simplest-upload/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
301
========

Moved to [Meteor-Files-Demos](https://github.com/VeliovGroup/Meteor-Files-Demos) repository
Moved to [Meteor-Files-Demos](https://github.com/veliovgroup/Meteor-Files-Demos) repository
2 changes: 1 addition & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
301
========

Moved to [Meteor-Files-Demos](https://github.com/VeliovGroup/Meteor-Files-Demos) repository
Moved to [Meteor-Files-Demos](https://github.com/veliovgroup/Meteor-Files-Demos) repository
12 changes: 6 additions & 6 deletions docs/3rd-party-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Any 3rd party storage with REST API or Node.js SDK can be easily integrated.

__Integration examples:__

- [AWS S3 Bucket Integration](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/aws-s3-integration.md)
- [DropBox Integration](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/dropbox-integration.md)
- [GridFS using `GridFSBucket`](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/gridfs-bucket-integration.md#use-gridfs-with-gridfsbucket-as-a-storage)
- [GridFS using `gridfs-stream` (legacy)](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/gridfs-integration.md)
- [Google Cloud Storage Integration](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/google-cloud-storage-integration.md)
- [AWS S3 Bucket Integration](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/aws-s3-integration.md)
- [DropBox Integration](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/dropbox-integration.md)
- [GridFS using `GridFSBucket`](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/gridfs-bucket-integration.md#use-gridfs-with-gridfsbucket-as-a-storage)
- [GridFS using `gridfs-stream` (legacy)](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/gridfs-integration.md)
- [Google Cloud Storage Integration](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/google-cloud-storage-integration.md)

*AWS S3* and *DropBox* is available in [demo app](https://github.com/VeliovGroup/Meteor-Files-Demos/tree/master/demo) out-of-the box
*AWS S3* and *DropBox* is available in [demo app](https://github.com/veliovgroup/Meteor-Files-Demos/tree/master/demo) out-of-the box
2 changes: 1 addition & 1 deletion docs/about-transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The cons:

## RTC Data Chanel (UDP)

This transport supported only in [webrtc-data-channel](https://github.com/VeliovGroup/Meteor-Files/tree/webrtc-data-channel) branch. It's in testing mode, we're waiting for community feedback, before merging to `master`. If you're interested in RTC/DC uploads, try this branch locally. Any feedback on RTC/DC usage for uploads is highly appreciated!
This transport supported only in [webrtc-data-channel](https://github.com/veliovgroup/Meteor-Files/tree/webrtc-data-channel) branch. It's in testing mode, we're waiting for community feedback, before merging to `master`. If you're interested in RTC/DC uploads, try this branch locally. Any feedback on RTC/DC usage for uploads is highly appreciated!

The pros:

Expand Down
16 changes: 8 additions & 8 deletions docs/constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@
Allows to change default response headers
</td>
<td>
<a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/custom-response-headers.md#default-function">Default <em>Function</em></a>
<a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/custom-response-headers.md#default-function">Default <em>Function</em></a>
</td>
<td>
We recommend to keep original function structure, with your modifications, see <a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/custom-response-headers.md#adding-custom-header-example">example altering default headers</a>
We recommend to keep original function structure, with your modifications, see <a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/custom-response-headers.md#adding-custom-header-example">example altering default headers</a>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -206,10 +206,10 @@
Collection Schema
</td>
<td>
<a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/schema.md#schema">Default Schema</a>
<a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/schema.md#schema">Default Schema</a>
</td>
<td>
<a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/schema.md#schema">For more info read Schema docs</a>
<a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/schema.md#schema">For more info read Schema docs</a>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -324,7 +324,7 @@
<strong>Arguments</strong>:
<ul>
<li>
<code>fileObj</code> - see <a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/schema.md#schema">schema</a>
<code>fileObj</code> - see <a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/schema.md#schema">schema</a>
</li>
</ul><br>
<strong>Context</strong>:
Expand Down Expand Up @@ -363,7 +363,7 @@
<strong>Arguments</strong>:
<ul>
<li>
<code>fileObj</code> {<em>Object</em>|<em>null</em>} - If requested file exists - <a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/schema.md#schema">file object</a>, otherwise -
<code>fileObj</code> {<em>Object</em>|<em>null</em>} - If requested file exists - <a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/schema.md#schema">file object</a>, otherwise -
<code>null</code>
</li>
</ul><br>
Expand Down Expand Up @@ -517,7 +517,7 @@
<code>false</code>
</td>
<td>
See: <a href="https://github.com/VeliovGroup/Meteor-Files/issues/208">#208</a>
See: <a href="https://github.com/veliovgroup/Meteor-Files/issues/208">#208</a>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1116,7 +1116,7 @@ const Images = new FilesCollection({

#### Use onBeforeRemove to avoid unauthorized remove:

*For more info see [remove method](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/remove.md).*
*For more info see [remove method](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/remove.md).*

```js
import { FilesCollection } from 'meteor/ostrio:files';
Expand Down
2 changes: 1 addition & 1 deletion docs/custom-response-headers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Custom Response Headers

- `config.responseHeaders` option (*passed into [`FilesCollection` Constructor](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/constructor.md)*)
- `config.responseHeaders` option (*passed into [`FilesCollection` Constructor](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/constructor.md)*)

*Allows to change default response headers.*

Expand Down
2 changes: 1 addition & 1 deletion docs/find.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Find and return Cursor for matching documents.

- `selector` {*String*|*Object*} - [Mongo-Style selector](http://docs.meteor.com/api/collections.html#selectors)
- `options` {*Object*} - [Mongo-Style selector Options](http://docs.meteor.com/api/collections.html#sortspecifiers)
- Returns {*[FilesCursor](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/FilesCursor.md)*}
- Returns {*[FilesCursor](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/FilesCursor.md)*}

```js
import { Meteor } from 'meteor/meteor';
Expand Down
2 changes: 1 addition & 1 deletion docs/findOne.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Finds the first document that matches the selector, as ordered by sort and skip

- `selector` {*String*|*Object*} - [Mongo-Style selector](http://docs.meteor.com/api/collections.html#selectors)
- `options` {*Object*} - [Mongo-Style selector Options](http://docs.meteor.com/api/collections.html#sortspecifiers)
- Returns {*[FileCursor](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/FileCursor.md)*}
- Returns {*[FileCursor](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/FileCursor.md)*}

```js
import { FilesCollection } from 'meteor/ostrio:files';
Expand Down
4 changes: 2 additions & 2 deletions docs/gridfs-bucket-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This allows to *horizontally scale your files* the same way you do with your doc

**A note for beginners:** This tutorial is a bit advanced and we try to explain the involved steps as detailed as
possible. If you still need some reference to play with, we have set up an example project. The project
is available via [`files-gridfs-autoform-example`](https://github.com/VeliovGroup/files-gridfs-autoform-example)
is available via [`files-gridfs-autoform-example`](https://github.com/veliovgroup/files-gridfs-autoform-example)

## About GridFS

Expand All @@ -25,7 +25,7 @@ plus some additional metadata.

Please note - by default all files will be served with `200` response code, which is fine if you planning to deal
only with small files, or not planning to serve files back to users (*use only upload and storage*).
For support of `206` partial content see [this article](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/gridfs-streaming.md).
For support of `206` partial content see [this article](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/gridfs-streaming.md).

## 1. Create a `GridFSBucket` factory

Expand Down
4 changes: 2 additions & 2 deletions docs/gridfs-integration.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Use GridFS with `gridfs-stream` as a storage

> :warning: **Deprecation warning:** The `gridfs-stream` [has not been updated in a long time](https://github.com/aheckmann/gridfs-stream) and its implementation relies on the deprecated [`GridStore API`](https://mongodb.github.io/node-mongodb-native/3.6/api/GridStore.html). An alternative is to use the Mongo driver's native `GridFSBucket`, which is also [described in
this wiki](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/gridfs-bucket-integration.md).
this wiki](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/gridfs-bucket-integration.md).

Example below shows how to handle (store, serve, remove) uploaded files via GridFS.

Please note - by default all files will be served with `200` response code, which is fine if you planning to deal only with small files, or not planning to serve files back to users (*use only upload and storage*). For support of `206` partial content see [this article](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/gridfs-streaming.md).
Please note - by default all files will be served with `200` response code, which is fine if you planning to deal only with small files, or not planning to serve files back to users (*use only upload and storage*). For support of `206` partial content see [this article](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/gridfs-streaming.md).

### Preparation

Expand Down
2 changes: 1 addition & 1 deletion docs/gridfs-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ First create three Methods in P that each share one of the three crucial Parts o
- Sharing the `fs.files`* metadata for the files' respective subversions
- Sharing the `fs.chunks`* (the actual data) of all stored files and their subversions

*This assumes the [default configuration of your GridFS](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/gridfs-bucket-integration.md) which is by default using the `db.fs.files` and `db.fs.chunks` collections.*
*This assumes the [default configuration of your GridFS](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/gridfs-bucket-integration.md) which is by default using the `db.fs.files` and `db.fs.chunks` collections.*

*For custom configuration you may consult the JS Mongo Native Driver documentation on [GridFSBucket](http://mongodb.github.io/node-mongodb-native/3.6/api/GridFSBucket.html).*

Expand Down
2 changes: 1 addition & 1 deletion docs/gridfs-streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ By default files served from GridFS returned with `200` response code. This beha

`206` partial content response is much better from all sides, for video and audio it allows to support time-seeking, for large files - resumable downloads. For server-side it reduces memory and CPU consumption.

Below is code sample suggested by [@j1016h](https://github.com/j1016h), where [`interceptDownload`](https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/constructor.md) is used to alter default file-serving behavior - *use it as it at your own risk, or take it and modify to meet your own needs*.
Below is code sample suggested by [@j1016h](https://github.com/j1016h), where [`interceptDownload`](https://github.com/veliovgroup/Meteor-Files/blob/master/docs/constructor.md) is used to alter default file-serving behavior - *use it as it at your own risk, or take it and modify to meet your own needs*.

```js
interceptDownload(http, image, versionName) {
Expand Down
2 changes: 1 addition & 1 deletion docs/insert.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Upload file to a Server via DDP or HTTP.
Upload as base64 string, useful for data taken from `canvas`
</td>
<td>
<a href="https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/insert.md#upload-base64-string">See Examples</a>
<a href="https://github.com/veliovgroup/Meteor-Files/blob/master/docs/insert.md#upload-base64-string">See Examples</a>
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/load.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Write file to file system from remote URL (external resource) and add record to
import { FilesCollection } from 'meteor/ostrio:files';
const Images = new FilesCollection({collectionName: 'Images'});

Images.load('https://raw.githubusercontent.com/VeliovGroup/Meteor-Files/master/logo.png', {
Images.load('https://raw.githubusercontent.com/veliovgroup/Meteor-Files/master/logo.png', {
fileName: 'logo.png',
fileId: 'abc123myId', //optional
timeout: 60000, // optional timeout
Expand Down
Loading

0 comments on commit 0199a2f

Please sign in to comment.