| Server IP : 54.233.248.239 / Your IP : 172.28.20.13 Web Server : Apache System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/vinumday2_0/vendor/mongodb/mongodb/docs/reference/class/ |
Upload File : |
============================= MongoDB\\GridFS\\Bucket Class ============================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpclass:: MongoDB\\GridFS\\Bucket :manual:`GridFS </core/gridfs>` is a specification for storing and retrieving files in MongoDB. GridFS uses two collections to store files. One collection stores the file chunks (e.g. ``fs.chunks``), and the other stores file metadata (e.g. ``fs.files``). The :phpclass:`MongoDB\\GridFS\\Bucket` class provides an interface around these collections for working with the files as PHP :php:`Streams <stream>`. You can construct a GridFS bucket using the driver's :php:`Manager <class.mongodb-driver-manager>` class, or select a bucket from the library's :phpclass:`MongoDB\\Database` class via the :phpmethod:`selectGridFSBucket() <MongoDB\\Database::selectGridFSBucket>` method. Methods ------- .. toctree:: :titlesonly: /reference/method/MongoDBGridFSBucket__construct /reference/method/MongoDBGridFSBucket-delete /reference/method/MongoDBGridFSBucket-downloadToStream /reference/method/MongoDBGridFSBucket-downloadToStreamByName /reference/method/MongoDBGridFSBucket-drop /reference/method/MongoDBGridFSBucket-find /reference/method/MongoDBGridFSBucket-findOne /reference/method/MongoDBGridFSBucket-getBucketName /reference/method/MongoDBGridFSBucket-getChunksCollection /reference/method/MongoDBGridFSBucket-getChunkSizeBytes /reference/method/MongoDBGridFSBucket-getDatabaseName /reference/method/MongoDBGridFSBucket-getFileDocumentForStream /reference/method/MongoDBGridFSBucket-getFileIdForStream /reference/method/MongoDBGridFSBucket-getFilesCollection /reference/method/MongoDBGridFSBucket-getReadConcern /reference/method/MongoDBGridFSBucket-getReadPreference /reference/method/MongoDBGridFSBucket-getTypeMap /reference/method/MongoDBGridFSBucket-getWriteConcern /reference/method/MongoDBGridFSBucket-openDownloadStream /reference/method/MongoDBGridFSBucket-openDownloadStreamByName /reference/method/MongoDBGridFSBucket-openUploadStream /reference/method/MongoDBGridFSBucket-rename /reference/method/MongoDBGridFSBucket-uploadFromStream