File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -378,11 +378,11 @@ Use the ``MongoDB\GridFS\Bucket::rename()`` method to update the name of
378378a GridFS file in your bucket. Pass the following parameters to the ``rename()``
379379method:
380380
381- - ``_id`` value of the document you want to rename
381+ - ``_id`` value of the file you want to rename
382382- New file name
383383
384384The following example shows how to update the ``filename`` field to
385- ``'new_file_name'`` by referencing a document 's ``_id`` field :
385+ ``'new_file_name'`` by referencing a file 's ``_id`` value :
386386
387387.. literalinclude:: /includes/write/gridfs.php
388388 :language: php
@@ -426,7 +426,7 @@ The following example shows you how to delete a file by referencing its ``_id``
426426
427427Alternatively, you can use the ``MongoDB\GridFS\Bucket::deleteByName()`` method
428428to delete a file and all its file revisions. Pass the ``filename`` value of the
429- files you want to delete as a parameter to the ``deleteByName()`` method, as shown
429+ file you want to delete as a parameter to the ``deleteByName()`` method, as shown
430430in the following code:
431431
432432.. literalinclude:: /includes/write/gridfs.php
You can’t perform that action at this time.
0 commit comments