note 108259 added to mongogridfs.storefile
| From: | imaginary at friend dot com | Date: | Thu, 12 Apr 2012 13:04:19 +0000 |
| Subject: | note 108259 added to mongogridfs.storefile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187084@lists.php.net to get a copy of this message | ||
The $filename parameter apparently only works with filesystem names, it cannot be any URI.
I tried to store directly from a stream like "php://stdin" and it threw an exception,
"error setting up file: php://stdin". I had to load data into a binary string first, then
store the data explicitly:
<?php
$grid->storeBytes(file_get_contents('php://stdin'));
----
Server IP: 87.124.126.48
Probable Submitter: 81.141.70.173
----
Manual Page -- http://www.php.net/manual/en/mongogridfs.storefile.php
Edit -- https://master.php.net/note/edit/108259
Del: integrated -- https://master.php.net/note/delete/108259/integrated
Del: useless -- https://master.php.net/note/delete/108259/useless
Del: bad code -- https://master.php.net/note/delete/108259/bad+code
Del: spam -- https://master.php.net/note/delete/108259/spam
Del: non-english -- https://master.php.net/note/delete/108259/non-english
Del: in docs -- https://master.php.net/note/delete/108259/in+docs
Del: other reasons-- https://master.php.net/note/delete/108259
Reject -- https://master.php.net/note/reject/108259
Search -- https://master.php.net/manage/user-notes.php