Tag:Upload Excel

  • Asp.net realizes the function of uploading excel

    Time:2021-12-5

    These days, it’s just necessary to upload excel and do corresponding processing according to the data in Excel, so it’s sorted for standby. Resources used: (1) Nopi 2.2.0.0 can be downloaded from the official website or click: http://pan.baidu.com/s/1b1EMdg (2) Some common public method classes for processing files can be added to the project: http://pan.baidu.com/s/1bJpHuQ If […]

  • Yii2.0 framework to upload Excel files and import them into the database

    Time:2021-1-20

    In this paper, an example of yii2.0 framework to upload Excel files into the database after the method. The details are as follows: Model model <?php /** *Describe * @author zcy * @date 2019/8/13 */ namespace app\models; use yii\base\Model; use yii\db\ActiveRecord; use yii\web\UploadedFile; class uploadForm extends ActiveRecord { public $file; public function rules() { return […]