Note that there are some explanatory texts on larger screens.

plurals
  1. POuncaught exception: Call to StartUpload failed in uploadify integration with codeigniter
    primarykey
    data
    text
    <p>i have integrated uploadify with codeigniter.i can't able select images while clicking the select photos.</p> <p>MY View file</p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html lang="en-GB"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Uploadify V3 &amp;amp; CodeIgniter&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt; &lt;meta name="description" content=""&gt; &lt;meta name="author" content="Capsone-System2" &gt; &lt;!-- Styles --&gt; &lt;link href="/assets/bootstrap/css/bootstrap.min.css" type="text/css" media="screen" rel="stylesheet"/&gt; &lt;link href="&lt;?php echo base_url;?&gt;assets/js/jquery/uploadify_31/uploadify.css" type="text/css" media="screen" rel="stylesheet"/&gt; &lt;!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --&gt; &lt;!--[if lt IE 9]&gt; &lt;script src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt; &lt;![endif]--&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- Main Content --&gt; &lt;div class="container"&gt; &lt;h1 class="page-header"&gt;Uploadify V3 &amp;amp; CodeIgniter&lt;/h1&gt; &lt;p&gt;This is a simple tutorial demo showing Uploadify V3 working with CodeIgniter 2.1.2&lt;/p&gt; &lt;?php echo form_open_multipart(); ?&gt; &lt;ul class="unstyled"&gt; &lt;li&gt; &lt;?php echo form_upload('userfile','','id="userfile"'); ?&gt; &lt;?php echo (isset($error)) ? $error : ''; ?&gt; &lt;/li&gt; &lt;li&gt; &lt;?php echo form_button(array('content'=&gt; 'Upload', 'id'=&gt;'upload-file', 'class'=&gt;'btn btn-large btn-primary')); ?&gt; &lt;/li&gt; &lt;/ul&gt; &lt;?php echo form_close(); ?&gt; &lt;/div&gt; &lt;!-- End Of Main Content --&gt; &lt;!--&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"&gt;&lt;/script&gt;--&gt; &lt;!--&lt;script&gt;window.jQuery || document.write('&lt;script src="&lt;?php echo base_url;?&gt;assets/js/jquery/jquery-1.8.0.min.js"&gt;&lt;/script&gt;')&lt;/script&gt;--&gt; &lt;script src="&lt;?php echo base_url;?&gt;assets/js/jquery/uploadify_31/jquery.uploadify-3.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;!--&lt;script src="&lt;?php echo base_url;?&gt;assets/bootstrap/js/bootstrap.min.js" type="text/javascript"&gt;&lt;/script&gt;--&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { var base_url = '&lt;?php echo base_url; ?&gt;'; alert(base_url); $('#upload-file').click(function (e) { e.preventDefault(); $('#userfile').uploadify('upload', '*'); alert(base_url); }); $('#userfile').uploadify({ 'debug':true, 'auto':false, 'swf': base_url + 'assets/js/jquery/uploadify_31/uploadify.swf', 'uploader': base_url + 'uploadify_v3/do_upload', 'cancelImg': base_url + 'assets/javascript/jquery/uploadify_31/uploadify-cancel.png', 'fileTypeExts':'*.jpg;*.bmp;*.png;*.tif', 'fileTypeDesc':'Image Files (.jpg,.bmp,.png,.tif)', 'fileSizeLimit':'2MB', 'fileObjName':'userfile', 'buttonText':'Select Photo(s)', 'multi':true, 'removeCompleted':false, 'onUploadError' : function(file, errorCode, errorMsg, errorString) { alert('The file ' + file.name + ' could not be uploaded: ' + errorString); } }); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>My Controller File</p> <p>I have error uncaught exception: Call to StartUpload failed</p> <pre><code>&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * @property CI_Upload $upload */ class Uploadify_v3 extends CI_Controller { public $view_data = array(); private $upload_config; function __construct() { parent::__construct(); } public function index() { $this-&gt;load-&gt;helper(array('url', 'form')); $this-&gt;load-&gt;view('uploadify_v3', $this-&gt;view_data); } public function do_upload() { $this-&gt;load-&gt;library('upload'); $image_upload_folder = FCPATH . '/uploads'; if (!file_exists($image_upload_folder)) { mkdir($image_upload_folder, DIR_WRITE_MODE, true); } $this-&gt;upload_config = array( 'upload_path' =&gt; $image_upload_folder, 'allowed_types' =&gt; 'png|jpg|jpeg|bmp|tiff', 'max_size' =&gt; 2048, 'remove_space' =&gt; TRUE, 'encrypt_name' =&gt; TRUE, ); $this-&gt;upload-&gt;initialize($this-&gt;upload_config); if (!$this-&gt;upload-&gt;do_upload()) { $upload_error = $this-&gt;upload-&gt;display_errors(); echo json_encode($upload_error); } else { $file_info = $this-&gt;upload-&gt;data(); echo json_encode($file_info); } } } /* End of file uploadify_v3.php */ /* Location: ./application/controllers/uploadify_v3.php */ </code></pre> <p>I have spent more time..still now i can't fix this error..please help me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload