Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Best Way To Add Filesystem Storage To A Model

$
0
0
I need to store uploaded files. For this I use a database table which holds the meta data for the file and I store the file on the filesystem, I add the path to a database row.

What is the best way to integrate this into a model?

I'd like the ActiveRecord model to handle the storing and retrieving automatically as if the upload was stored in the database itself.
What is the best way to implement this, are there perhaps applicable examples or extensions out there?

Thx

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>