Welcome Guest, Not a member yet? Register   Sign In
swfupload problems!
#1

[eluser]MMCCQQ[/eluser]
hi!

i can't upload a file with swfupload

this is my code: i using SWFupload Sample.

Code:
[removed]
    
        var swfu;
    
        window.onload = function() {
        
            // Max settings
            swfu = new SWFUpload({
                upload_script : "http://localhost/S5/index.php/users/subiendo_fotos",
                 post_params: {"PHPSESSID": "cf7mgr76aqh4j9ndgue9nd7kc4"},
                target : "SWFUploadTarget",
                flash_path : "<?=base_url()?>swfupload/swfupload_f9.swf",
                allowed_filesize : 30720,    // 30 MB
                allowed_filetypes : "*.*",
                allowed_filetypes_description : "All files...",
                browse_link_innerhtml : "Elegir fotos",
                upload_link_innerhtml : "Subir fotos",
                browse_link_class : "swfuploadbtn browsebtn",
                upload_link_class : "swfuploadbtn uploadbtn",
                upload_file_queued_callback : fileQueued,
                upload_file_start_callback : uploadFileStart,
                upload_progress_callback : uploadProgress,
                upload_file_complete_callback : uploadFileComplete,
                upload_file_cancel_callback : uploadFileCancelled,
                upload_queue_complete_callback : uploadQueueComplete,
                upload_file_error_callback : uploadError,
                upload_file_cancel_callback : uploadFileCancelled,
            
                debug : false
            });
            
        };
        
    [removed]


<div id="titl_msg">Subir fotos</div>

<div id="form-box" style="border-color:#EBF2D6;">
    <div id="SWFUploadTarget">
        &lt;form action="&lt;?=site_url();?&gt;/users/subiendo_fotos" method="post" enctype="multipart/form-data"&gt;
            &lt;input type="file" name="Filedata" id="Filedata" /&gt;
            &lt;input type="submit" value="upload test" /&gt;
        &lt;/form&gt;
    </div>
    <h4 id="queueinfo">Queue is empty</h4>
    <div id="fsUploadProgress" style="height: 75px;"></div>
    <div id="SWFUploadFileListingFiles"></div>
    <br class="clr" />
    <a class="swfuploadbtn" id="cancelqueuebtn" href="[removed]cancelQueue();">Cancel queue</a> </div>
</div>

this is the controller

Code:
function Subiendo_fotos(){

    $this->load->library('upload');
    

            $config['upload_path'] = 'c://AppServ/www/S5/images/';
            $config['allowed_types'] = 'gif|jpg|png';
            $config['max_size']    = '1000';
            $config['max_width']  = '1024';
            $config['max_height']  = '768';
            
           $this->upload->initialize($config);
           $this->upload->do_upload('Filedata');
       echo $this->upload->display_errors();
            
        
        
        
    }

i dont know what happed because dont display any errors..i tested without swfupload and worked pretty good.


Messages In This Thread
swfupload problems! - by El Forum - 09-10-2008, 04:25 PM
swfupload problems! - by El Forum - 09-10-2008, 06:53 PM
swfupload problems! - by El Forum - 09-10-2008, 09:09 PM
swfupload problems! - by El Forum - 09-11-2008, 04:04 AM
swfupload problems! - by El Forum - 09-11-2008, 04:04 AM
swfupload problems! - by El Forum - 09-11-2008, 04:04 AM
swfupload problems! - by El Forum - 09-11-2008, 04:14 AM
swfupload problems! - by El Forum - 09-11-2008, 04:23 AM
swfupload problems! - by El Forum - 09-11-2008, 08:02 AM
swfupload problems! - by El Forum - 09-11-2008, 09:48 AM
swfupload problems! - by El Forum - 09-11-2008, 09:54 AM
swfupload problems! - by El Forum - 10-31-2008, 07:27 PM
swfupload problems! - by El Forum - 11-15-2008, 04:13 PM
swfupload problems! - by El Forum - 11-18-2008, 04:34 PM
swfupload problems! - by El Forum - 11-18-2008, 05:28 PM
swfupload problems! - by El Forum - 11-18-2008, 06:53 PM
swfupload problems! - by El Forum - 11-18-2008, 06:56 PM
swfupload problems! - by El Forum - 11-19-2008, 03:28 AM
swfupload problems! - by El Forum - 11-19-2008, 08:27 AM
swfupload problems! - by El Forum - 11-24-2008, 04:01 PM
swfupload problems! - by El Forum - 11-25-2008, 05:07 AM
swfupload problems! - by El Forum - 11-25-2008, 03:46 PM
swfupload problems! - by El Forum - 04-20-2010, 08:49 AM
swfupload problems! - by El Forum - 04-20-2010, 08:54 AM
swfupload problems! - by El Forum - 04-20-2010, 09:09 AM
swfupload problems! - by El Forum - 04-20-2010, 09:15 AM
swfupload problems! - by El Forum - 04-20-2010, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB