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
378
378
a GridFS file in your bucket. Pass the following parameters to the ``rename()``
379
379
method:
380
380
381
- - ``_id`` value of the document you want to rename
381
+ - ``_id`` value of the file you want to rename
382
382
- New file name
383
383
384
384
The 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 :
386
386
387
387
.. literalinclude:: /includes/write/gridfs.php
388
388
:language: php
@@ -426,7 +426,7 @@ The following example shows you how to delete a file by referencing its ``_id``
426
426
427
427
Alternatively, you can use the ``MongoDB\GridFS\Bucket::deleteByName()`` method
428
428
to 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
430
430
in the following code:
431
431
432
432
.. literalinclude:: /includes/write/gridfs.php
You can’t perform that action at this time.
0 commit comments