Note that there are some explanatory texts on larger screens.

plurals
  1. PORedactor wysiwyg image upload not working and no errors
    primarykey
    data
    text
    <p>I'm trying to implement redactor wysiwyg and I have problems with image upload.</p> <p>Controller</p> <pre><code>public function upload() { $config = array( 'upload_path' =&gt; './uploads', 'allowed_types' =&gt; 'gif|jpg|jpeg|png|bmp', 'max_size' =&gt; '60000', 'encrypt_name' =&gt; TRUE, 'remove_spaces' =&gt; TRUE ); // load upload library and initialize config file $this-&gt;load-&gt;library('upload', $config); if($this-&gt;upload-&gt;do_upload('file')) { $image_data = $this-&gt;upload-&gt;data(); $json = array( 'filelink' =&gt; base_url("uploads/{$image_data['file_name']}") ); echo stripslashes(json_encode($json)); } } </code></pre> <p>View</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready( function() { $('#redactor').redactor({ imageUpload: "http://localhost/rms2/admin/pages/upload", minHeight: 150 }); } ); &lt;/script&gt; &lt;?php echo form_open_multipart($this-&gt;uri-&gt;uri_string())?&gt; &lt;div class="form"&gt; &lt;div class="horizontal"&gt; &lt;div class="label"&gt;&lt;?php echo form_label('Description', 'description')?&gt;&lt;/div&gt; &lt;div class="input"&gt;&lt;?php echo form_textarea('description', set_value('description'), 'id="redactor"')?&gt;&lt;/div&gt; &lt;div class="form_error"&gt;&lt;?php echo form_error('description')?&gt;&lt;/div&gt; &lt;/div&gt; ..... </code></pre> <p>The main problem is that I don't get any errors when I try to upload a image and if I drag it I get the message loading 100% like the image is uploaded, but no image, in the source file no tag, nothing.</p> <p>Did anybody encounter this problem ??</p> <p><strong>EDIT</strong>:</p> <p>The link provided to image upload is not getting requested as I tried with a link outside CI(just a simple php file upload) and it works just fine, design pattern of the system is HMVC, anybody willing to give a hand or suggestions?</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.
 

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