[eluser]minagabriel[/eluser]
hello guys iam trying to upload an image and i my view is
Code:
<?php echo form_open('photo/do_upload'); ?>
photos : <input type="text" name="name" />
photo caption : <textarea name="mytext" cols="30" rows="5">
please add your caption here </textarea>
<label for="file"> file name : </label>
<input type="file" name="file" id="file"/>
<input type="submit" name="submit" value="upload" />
</form>
</form>
how can i pass the image data like size , name etc
i used
$this->input->post('file') and it echo the image name for me
my question is how do i get $_file['file']['size'] to my controller ?
thnx all