con322
con322

Reputation: 1129

Yii2 kartik widget FileInput column type

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

Answers (1)

Abhimanyu Saharan
Abhimanyu Saharan

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

Related Questions