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

[eluser]fatangel26[/eluser]
- Hello everybody, i am having a problem with jquery uploadify. My js code :
Code:
var base_url = 'http://localhost/winesey/';
    
    $("#link_upload").uploadify({
    '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){
     if(d.status=404)
      alert('Errors.');
     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');
     else
      alert('error'+d.type+": "+d.text);
    },
    'onComplete' : function(event, ID, fileObj, response, data){
      $("#uploaded_preview").html("<img  />");
    }
   });
. When i click Browse buttion, the result :
Code:
Chrysanthemum.jpg (858.78KB) - HTTP Error
. Sorry for my English, help me, thanks all!


Messages In This Thread
Problem with Uploadify - by El Forum - 10-02-2012, 10:00 AM
Problem with Uploadify - by El Forum - 10-04-2012, 02:57 AM
Problem with Uploadify - by El Forum - 10-04-2012, 07:30 AM
Problem with Uploadify - by El Forum - 10-04-2012, 10:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB