Welcome Guest, Not a member yet? Register   Sign In
Multi Upload with CI & swfUpload
#8

[eluser]Gabriel Popa[/eluser]
Hi to all swfupload users,

i'm trying to do the same thing like you, but not for pictures. only for documents.

using controller with CI file_upload class working like a charm. Using with swfupload, i get upload complete message but no sign of uploaded file.

here it is my view:
Code:
<div id="flashUI" style="display: none;">
  <div>
       &lt;input type="text" id="txtFileName" name="txtFileName" disabled="true" style="border: solid 1px; background-color: #FFFFFF;" /&gt;
       &lt;input id="btnBrowse" type="button" value="Browse..." onclick="fileBrowse.apply(swfu)" /&gt;
                            (10 MB max)
  </div>
<div class="flash" id="fsUploadProgress"></div>
       &lt;input type="hidden" name="hidFileID" id="hidFileID" value="" /&gt;
</div>
<div id="degradedUI">
       &lt;input type="file" name="resume_degraded" id="resume_degraded" /&gt;                        (10 MB max)<br/>        
</div>

my js
Code:
swfu = new SWFUpload({
                            // Backend settings
                            upload_url: "&lt;?php echo $this->config->config['base_url'] ?&gt;welcome/do_upload",    // Relative to the SWF file, you can use an absolute URL as well.
                            flash_url : "&lt;?php echo $this->config->config['base_url'] ?&gt;resources/flashdevelop/flash9/swfupload_f9.swf",        // Relative to this file
            
                            post_params: {"PHPSESSID": "&lt;?=$this->session->userdata('session_id');?&gt;"},

                            file_size_limit : "10240",    // 10 MB
                            file_types : "*.doc;*.pdf",    
                            file_types_description : "All Files",
                            file_upload_limit : "0",     // Even though I only want one file I want the user to be able to try again if an upload fails
                            file_queue_limit : "1",     // this isn't needed because the upload_limit will automatically place a queue limit

                            swfupload_loaded_handler : swfUploadLoaded,
                            
                            file_queued_handler : fileQueued,
                            file_queue_error_handler : fileQueueError,
                            file_dialog_complete_handler : fileDialogComplete,

                            upload_progress_handler : uploadProgress,
                            upload_error_handler : uploadError,
                            upload_success_handler : uploadSuccess,
                            upload_complete_handler : uploadComplete,
            
                            swfupload_element_id : "flashUI",                                            // setting for the graceful degradation plugin
                            degraded_element_id : "degradedUI",
            
                            custom_settings : {
                                progress_target : "fsUploadProgress",
                                upload_successful : false
                            },
                            
                            debug: true
                        });

and my controller

Code:
$config['upload_path'] = './uploads/CVS/';
    $config['allowed_types'] = 'doc|pdf';
    $config['max_size']    = '100';
        
    $this->load->library('upload', $config);
      
    $this->upload->do_upload('txtFileName');
    $res = $this->upload->data();

    echo $res['file_name'];

i don't know where my problem is, but if i knew how to debug it.....

anyone can help?

Thanks

is there


Messages In This Thread
Multi Upload with CI & swfUpload - by El Forum - 02-03-2008, 11:47 AM
Multi Upload with CI & swfUpload - by El Forum - 02-03-2008, 01:54 PM
Multi Upload with CI & swfUpload - by El Forum - 02-06-2008, 05:54 PM
Multi Upload with CI & swfUpload - by El Forum - 02-29-2008, 05:12 PM
Multi Upload with CI & swfUpload - by El Forum - 03-04-2008, 03:41 PM
Multi Upload with CI & swfUpload - by El Forum - 04-04-2008, 09:34 PM
Multi Upload with CI & swfUpload - by El Forum - 06-07-2008, 05:31 PM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 12:01 AM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 12:37 AM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 12:58 AM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 05:36 AM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 05:36 AM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 09:18 AM
Multi Upload with CI & swfUpload - by El Forum - 06-13-2008, 09:39 AM
Multi Upload with CI & swfUpload - by El Forum - 06-25-2008, 11:06 PM
Multi Upload with CI & swfUpload - by El Forum - 10-01-2008, 07:55 AM
Multi Upload with CI & swfUpload - by El Forum - 10-08-2008, 12:40 PM
Multi Upload with CI & swfUpload - by El Forum - 10-08-2008, 05:03 PM
Multi Upload with CI & swfUpload - by El Forum - 04-27-2009, 07:37 AM
Multi Upload with CI & swfUpload - by El Forum - 04-27-2009, 01:33 PM
Multi Upload with CI & swfUpload - by El Forum - 09-25-2012, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB