Комментарии:
Man, keep it going! u helped me so much!
ОтветитьCould you please help me fix this error:
Call to a member function saveAs() on null
how to upload video in yii2 and save ?Can anyone tell me step by step procedure like image file uploading above?
Ответитьthank you! I've been looking for this solution for a long time
Ответитьthanks
Ответитьhy bro it just working and yes thank also for nyc explanation
Ответитьi want to upload image to database but the image just stored in folder and not saved in database. i dont understand what is the problem, please help me,
Ответитьhii..plzz....provide a vdo there ....we can upload resume(doc.xls,) insteed of photo...plzz...
ОтветитьI've tried like what you do, but it seems to be no hope...
ОтветитьUnknown Property – yii\base\UnknownPropertyException
Getting unknown property: app\models\CalonPegawaiM::calonpegawaim
Hi, this video very use full and also work in my system....
ОтветитьGreat Tutorials,but only One suggestion that Please share the code of every tutorial somewhere on your blog/website or anywhere from where we can copy and practice the code.
ОтветитьVery thank
ОтветитьHello Sir ,
as you are coding same i am doing everything is correct there is no any error image is saved in folder but as i refresh my database i can't see the image name as you mentioned in the line of code
as: $imagename=$model->F_Name;
$model->file=UploadedFile::getInstance($model,'Image');
$model->file->saveAs('Images/'.$imagename.'.'.$model->file->extension);
$model->file='Images/'.$imagename.'.'.$model->file->extension;
please help me out in this case..
really Helpful
ОтветитьDon´t forget update the CompaniesControles on actionUpdate to allow modify de image!!!
ОтветитьHi, I'm following the tuturials, this it works fine. Can u add how display and resize the image file in the view ? Thanks
ОтветитьI can add an image by updating a record (using Larry Pham's code) but not when creating a new record. It uploads the file, but the logo field is just null. No errors, it just won't update the record.
ОтветитьSo Nice
Ответить