Wiki

Articles tagged with "upload"X
Displaying 1-2 of 2 result(s).

Displaying uploaded file from DB for update with FileInput widget

Created 5 months ago by Kartik VHow-tos0 comments – viewed 4,456 times – ( +30 / -5 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

How to read HTML5 Multiple File Input from controller?

Created 5 months ago by Kartik VHow-tos1 comment – viewed 1,797 times – ( +27 / -4 ) – version all
Ok, so you have a HTML 5 file input markup on your view and you have enabled multiple attribute to true. You may also be using widgets based on HTML5 input like \kartik\widgets\FileInput. But when you read a file in Yii controller using CUploadedFile (Yii1) or UploadedFile (Yii2), you do not see a list of multiple files that you selected in your view, but only one row. Your HTML markup in your view would be something like this and you don't know why this is not working?