Difference between #7 and #8 of
Upload files in Yii2 with MongoDb and GridFs

Revision #8 has been created by CeBe on Apr 14, 2014, 5:58:42 AM with the memo:

changed yii version
« previous (#7) next (#10) »

Changes

Title unchanged

Upload files in Yii2 with MongoDb and GridFs

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

yii2, mongodb, gridfs, File upload

Content unchanged

[...]
<?php endif; ?>
```

Quick note: this method is **recommended** for all of you guys who have to store sensible user data files (like card IDs, passports and so on) because you can leverage the standard **AccessControl** rules to display a single file so that you can put granular permissions to CRUD operations regarding files too (especially to read operations). If you are thinking of storing your user files in the server and you are not sure of how an .htaccess or apache2.conf file works, then I recommend this method (search engines crawlers can be very nasty when you publish /your/folder/image.png and you forget to remove the "List" permissions).

Hope this will help someone: thanks for your feedback.
6 0
6 followers
Viewed: 37 337 times
Version: 2.0
Category: How-tos
Written by: edoardo849
Last updated by: pceuropa
Created on: Feb 9, 2014
Last updated: 4 years ago
Update Article

Revisions

View all history