Codeigniter and Uploadify implementation |
[eluser]Unknown[/eluser]
1-YOUR VIEW FILE: Code: [removed][removed] 2.CONTROLLER Code: function do_upload() Code: 'bmp' => array('image/bmp','application/octet-stream'), That's it. Enjoy
[eluser]gRoberts[/eluser]
Depending on the file types, I just used: Code: $_FILES['Filedata']['type'] = mime_content_type($_FILES['Filedata']['tmp_name']); // force the mime type This then put the mime type back to what it should be and the upload library would work as normal.
[eluser]zrowcrypt[/eluser]
Its a simple thing and I still cant get it working dont know why ? VIEW..snippet: [removed][removed] [removed][removed] [removed][removed] ... ... <div id="fileQueue"></div> <input id="fileInput" name="fileInput" type="file" /> [removed]// <![CDATA[ $(document).ready(function() { $('#fileInput').uploadify({ 'uploader' : '<?php echo base_url();?>js/uploadify/uploadify.swf', 'script' : 'uploadify/do_upload', 'cancelImg' : './img/uploadify/cancel.png', 'folder' : './js/uploadify/pics', 'queueID' : 'fileQueue', 'fileDataName' :'userfile', 'auto' : true, 'multi' : true, 'fileExt': '*.jpg;*.jpeg;*.gif;*.png;', 'fileDesc' :'Please select Gif,JPG,PNG IMAGES', 'queueSizeLimit' :'20', 'buttonText': 'Uplaod Photo', onComplete: function(event, queueID, fileObj, reposnse, data) { //$('#filesUploaded').append('<a href='+fileObj.filePath+'>'+fileObj.name+'</a><br>'); alert(reposnse); }); }); // ]]>[removed] The view doesn't show me the swf stuff but just the plain html input box and button...which most probably means either my JQuery or Uploader is not getting loaded...but when i check the view source the path of both of these js and swf files are correct. Any help will be deeply appreciated. I am stuck here badly .
[eluser]onsetrese[/eluser]
Hi, I also followed this tutorial but i get http error, 302 I think. And havent found any work around. Regards Harold
[eluser]tokanizar[/eluser]
Me either! I think with default package from Uploadify, we cannot use with "pretty" URL like http://mysite.com/image/uploader This is access log from my localhost Apache server: Code: 127.0.0.1 - - [19/Jul/2011:14:04:41 +1200] "POST /image/uploadify HTTP/1.1" 500 540 As can be seen from the log, the link /image/uploadify is still accessible by direct access in browser but cannot use for Uploadify to post data. |
Welcome Guest, Not a member yet? Register Sign In |