apiargs-MongoDBGridFSBucket-method-openUploadStream-option.yaml 860 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
arg_name: option
name: _id
type: mixed
description: |
  Value to use as the file document identifier. Defaults to a new
  :php:`MongoDB\\BSON\\ObjectID <class.mongodb-bson-objectid>` object.
interface: phpmethod
operation: MongoDB\\GridFS\\Bucket::openUploadStream
optional: true
position: 1
---
arg_name: option
name: chunkSizeBytes
type: integer
description: |
  The chunk size in bytes. Defaults to the bucket's ``chunkSizeBytes`` option.
interface: phpmethod
operation: MongoDB\\GridFS\\Bucket::openUploadStream
optional: true
position: 2
---
arg_name: option
name: metadata
type: array|object
description: |
  User data for the ``metadata`` field of the file document. If not specified,
  the ``metadata`` field will not be set on the file document.
interface: phpmethod
operation: MongoDB\\GridFS\\Bucket::openUploadStream
optional: true
position: 3
...