Reputation: 1129
Reading the documentation for the Yii2 kartik widget FileInput I can't find any detail about the field type the data should be stored in.
http://demos.krajee.com/widget-details/fileinput
Should I be using a BLOB field or STRING?
Upvotes: 1
Views: 249
Reputation: 652
If you are storing your file on the file system then you should use string
data type as you will only be storing the name of the file. But if you are encoding your file then you should use blob
.
Upvotes: 1