get image path

Hi guys,

How to retrieve the image full path when user have finish select photo and click ok??

example like C:\Users\Pictures\imagesCA0VZM9A.jpg. Pls help. =)

<?php echo $form->fileField($model, 'uploadedFile'); ?>

How to upload a file using a model

Hi redguy,

Actually i just want to get the image path from the directory that user select instead save to file/ image to the database upload a file using a model… Any suggestions??

as far as I know - you cannot… This default HTML picker lets you only select a single file and upload its contents, file name, mime and nothing more. File picker in html has very tight interface for security reasons (w3c states that ‘value’ attribute for input type=“file” should be inaccessible from script)