Hello All,
I need to upload image files, and store its path in a database table, that table will have a foreign key from another table. My requirements are as follows,
Now currently I am using the following code
but the problem with this code is that whenever form validation is triggered due to any other fields, the file selection is gone and I need thumbnails also (in 2 different sizes), which it doesn’t offer.
<?php $this->widget('CMultiFileUpload', array(
'name' => 'images',
'accept' => 'jpeg|jpg|gif|png', // useful for verifying files
'duplicate' => 'Duplicate file!', // useful, i think
'denied' => 'Invalid file type', // useful, i think
));
?>