Getting uri-> segment on swfupload for model (database purpose) return nothing ?

i got this (thanks for Merolen) related to how to use the SWFuploader in CI, but i got some issues, coz in that thread it just for uploading, when i adding new line on my do_upload() function to get the uri->segment from my address it return nothing...

is there any others method to get the uri before uploading (with .swf) conducted ?

the address of my page :

my controller
class Upload extends Controller {
    function Upload()
       [i] $id=$this->uri->segment(3);[/i]
        $config['upload_path'] = $m;
        $config['allowed_types'] = 'gif|jpg|png';
        $config['max_size']    = '1000';
        $config['max_width']  = '1024';
        $config['max_height']  = '768';
        $this->load->library('upload', $config);
    function do_upload()
        $res = $this->upload->data();

        echo $res['file_name'];

Thanks for any help

my fools, this can be done easily....just add the
post_params: {"id" : "<?php echo $id ?>"},
on the swf scripts on the view, then catch that with

What a shamed this solved by myself by just reading other example source code
By the way thanks for reading my messages

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.