Wiki

Articles tagged with "file"X
Displaying 1-4 of 4 result(s).

Save uploaded file with any filename characters

Created 2 months ago by KonApazHow-tos3 comments – viewed 1,360 times – ( +1 ) – version 1.1
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

Displaying uploaded file from DB for update with FileInput widget

Created 3 months ago by Kartik VHow-tos0 comments – viewed 2,652 times – ( +25 / -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 3 months ago by Kartik VHow-tos1 comment – viewed 1,273 times – ( +24 / -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?

ClientValidation for files (modern browsers)

Created 8 months ago by KonApazHow-tos0 comments – viewed 4,424 times – ( +4 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?