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) »
Upload files in Yii2 with MongoDb and GridFs
yii2, mongodb, gridfs, File upload
[...]<?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.