Welcome Guest, Not a member yet? Register   Sign In
Problem with Uploadify

- Hello everybody, i am having a problem with jquery uploadify. My js code :
var base_url = 'http://localhost/winesey/';
    'uploader'  : base_url + 'assets/backend/uploadify/uploadify.swf',
    'script'  : base_url + 'backend/cms/uploadify',
    'cancelImg'  : base_url + '/assets/backend/uploadify/cancel.png',
    'folder'  : 'assets/uploads/link/',
    'fileDesc'  : 'Files Ảnh',
    'fileExt'  : '*.jpg;*.jpeg;*.gif;*.png',
    'sizeLimit'  : 100 * 1024 * 1024,
    'multi'   : false,
    'auto'   : true,
    'onError'  : function(a, b, c, d){
     else if(d.type === "HTTP")
      alert('error'+d.type+": "+d.info);
     else if(d.type === "File Size")
      alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB');
      alert('error'+d.type+": "+d.text);
    'onComplete' : function(event, ID, fileObj, response, data){
      $("#uploaded_preview").html("<img  />");
. When i click Browse buttion, the result :
Chrysanthemum.jpg (858.78KB) - HTTP Error
. Sorry for my English, help me, thanks all!

[eluser]Rok Biderman[/eluser]
Well, making Uploadify work with Codeigniter was always and still is tricky. The key problem is that the flash component is using the default php session, which Codeigniter does not. There are some other issues, but this is the main problem.

I've put on a working example onto Github, so you can see how it works. I think it will be much easier than explaining the steps, especially as you're still new.

There is a Cjax plugin that can get uploadify working without pain and without any configuration other than the one on the constructor, see sample: http://cjax.sourceforge.net/examples/plu...oadify.php

- Thanks all, but this error will happend when i use firefox browser. Why ?

Theme © iAndrew 2016 - Forum software by © MyBB