Welcome Guest, Not a member yet? Register   Sign In
Flash Image Uploader Issue
#1

[eluser]brainer[/eluser]
Hi guys, I've ran into a bit of an issue while trying to implement my flash image uploader to codeigniter. Its worked on previous apps, but not this one. I've searched the forums, but all i found was Uploadify, SWFUploader and CI session issues.

The progress bar runs, but the file just doesnt get placed. The folder has full write permissions and i've allowed the mime types

Code:
'jpeg'    =>    array('image/jpeg', 'image/pjpeg', 'application/octet-stream'),
                'jpg'    =>    array('image/jpeg', 'image/pjpeg', 'application/octet-stream'),
                'jpe'    =>    array('image/jpeg', 'image/pjpeg', 'application/octet-stream'),
                'png'    =>    array('image/png',  'image/x-png', 'application/octet-stream')

Here's my controller:

Code:
function ddPieceUploaderImage()
    {
        $config['upload_path'] = "uploads/";
        $config['allowed_types'] = 'gif|jpg|jpeg|png';
        $config['max_size'] = '1000';
        $config['max_width'] = '1920';
        $config['max_height'] = '1280';
        
        $this->load->library('upload', $config);
        
        if(!$this->upload->do_upload()) echo $this->upload->display_errors();
        else {
            $fInfo = $this->upload->data();
            $this->_createThumbnail($fInfo['file_name']);
            
            $data['uploadInfo'] = $fInfo;
            $data['thumbnail_name'] = $fInfo['raw_name'] . '_thumb' . $fInfo['file_ext'];
            $this->load->view('upload_success', $data);    
        }
    }
    
    
    
    function _createThumbnail($fileName) {
        $config['image_library'] = 'gd2';
        $config['source_image'] = 'uploads/' . $fileName;    
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 75;
        $config['height'] = 75;
        
        $this->load->library('image_lib', $config);
        if(!$this->image_lib->resize()) echo $this->image_lib->display_errors();
    }


Has anyone come accross this issue before?


Messages In This Thread
Flash Image Uploader Issue - by El Forum - 08-16-2009, 12:29 PM
Flash Image Uploader Issue - by El Forum - 08-16-2009, 01:58 PM
Flash Image Uploader Issue - by El Forum - 08-16-2009, 03:20 PM
Flash Image Uploader Issue - by El Forum - 08-16-2009, 03:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB