Yii2 Lesson - 17 Uploading Files to the server

Yii2 Lesson - 17 Uploading Files to the server

Uthpala Heenatigala

9 лет назад

73,243 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Dxve
Dxve - 22.11.2022 15:44

Man, keep it going! u helped me so much!

Ответить
Ahmed Abu Ruman
Ahmed Abu Ruman - 28.07.2021 10:00

Could you please help me fix this error:

Call to a member function saveAs() on null

Ответить
Adeel lone
Adeel lone - 03.03.2021 17:15

how to upload video in yii2 and save ?Can anyone tell me step by step procedure like image file uploading above?

Ответить
Нина Радионова
Нина Радионова - 16.01.2021 12:15

thank you! I've been looking for this solution for a long time

Ответить
victor anica
victor anica - 08.09.2020 22:20

thanks

Ответить
Fejan Malek
Fejan Malek - 23.04.2020 14:59

hy bro it just working and yes thank also for nyc explanation

Ответить
Anmol acharya
Anmol acharya - 21.10.2019 09:03

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,

Ответить
Avinash kumar
Avinash kumar - 26.07.2019 10:08

hii..plzz....provide a vdo there ....we can upload resume(doc.xls,) insteed of photo...plzz...

Ответить
Ngô Văn Quyền
Ngô Văn Quyền - 19.07.2019 11:51

I've tried like what you do, but it seems to be no hope...

Ответить
panjijonatan situmorang
panjijonatan situmorang - 10.07.2019 12:40

Unknown Property – yii\base\UnknownPropertyException
Getting unknown property: app\models\CalonPegawaiM::calonpegawaim

Ответить
Santhosh Kumar
Santhosh Kumar - 06.05.2019 16:09

Hi, this video very use full and also work in my system....

Ответить
Ankit Kapoor
Ankit Kapoor - 21.11.2018 11:10

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.

Ответить
กิตติวัฒน์ กุลชร
กิตติวัฒน์ กุลชร - 05.10.2018 14:02

Very thank

Ответить
Pubg Id321
Pubg Id321 - 02.06.2018 16:33

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..

Ответить
Onkar Kokane
Onkar Kokane - 23.07.2017 07:01

really Helpful

Ответить
Guillermo Romano
Guillermo Romano - 15.07.2017 18:06

Don´t forget update the CompaniesControles on actionUpdate to allow modify de image!!!

Ответить
Guillermo Romano
Guillermo Romano - 12.07.2017 02:14

Hi, I'm following the tuturials, this it works fine. Can u add how display and resize the image file in the view ? Thanks

Ответить
Michael Fullerton
Michael Fullerton - 08.06.2017 03:19

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.

Ответить
Shram Suvidha
Shram Suvidha - 29.05.2017 09:24

So Nice

Ответить