You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@param config.public {Boolean} - [Both] Store files in folder accessible for proxy servers, for limits, and more - read docs
431
432
@param config.strict {Boolean} - [Server] Strict mode for partial content, if is `true` server will return `416` response code, when `range` is not specified, otherwise server return `206`
{Number|dynamic} streams - Quantity of parallel upload streams, default: 2
1480
1481
{Number|dynamic} chunkSize - Chunk size for upload
1481
1482
{String} transport - Upload transport `http` or `ddp`
1482
-
{DDP} ddp - Custom DDP connection
1483
+
{Object} ddp - Custom DDP connection. Object returned form `DDP.connect()`
1483
1484
{Function} onUploaded - Callback triggered when upload is finished, with two arguments `error` and `fileRef`
1484
1485
{Function} onStart - Callback triggered when upload is started after all successful validations, with two arguments `error` (always null) and `fileRef`
1485
1486
{Function} onError - Callback triggered on error in upload and/or FileReader, with two arguments `error` and `fileData`
@@ -1488,7 +1489,7 @@ class FilesCollection
1488
1489
return true to continue
1489
1490
return false to abort upload
1490
1491
@param {Boolean} autoStart - Start upload immediately. If set to false, you need manually call .start() method on returned class. Useful to set EventListeners.
1491
-
@summary Upload file to server over DDP
1492
+
@summary Upload file to server over DDP or HTTP
1492
1493
@returns {UploadInstance} Instance. UploadInstance has next properties:
1493
1494
{ReactiveVar} onPause - Is upload process on the pause?
1494
1495
{ReactiveVar} state - active|paused|aborted|completed
0 commit comments