MongoGridFS::storeUpload(PECL mongo >=0.9.0) MongoGridFS::storeUpload — Saves an uploaded file to the database ОписаниеStores files directly from a POST to the database. For example, suppose you had the following HTML form: 
<form method="POST" enctype="multipart/form-data">If you wanted to store this upload in MongoDB, you could do: 
<?phpNote that the "name" field in HTML matches the name parameter. Список параметров
 
 Возвращаемые значенияReturns the _id of the uploaded file. Список изменений
 
  | 
||||||