Note that there are some explanatory texts on larger screens.

plurals
  1. POcodeigniter multi-upload only second uploaded
    primarykey
    data
    text
    <p>anyone can help me.. its work only if at least 2 files uploaded and then the first file didn't move to upload folder.. anyone can help.. here's my code </p> <p>// view </p> <pre><code>&lt;?php echo form_open_multipart($this-&gt;uri-&gt;uri_string()); ?&gt; &lt;p&gt; &lt;?php echo form_label('Image') ?&gt; &lt;input type="file" name="userfile[]" size="20" class="multi" accept="gif|jpg|png"/&gt; &lt;/p&gt; </code></pre> <p>// controller</p> <pre><code>function album($id){ if (isset($_POST['submit'])) { $config['upload_path'] = './assets/gallery/'; // server directory $config['allowed_types'] = 'gif|jpg|png'; // by extension, will check for whether it is an image $config['max_size'] = '1000'; // in kb $config['max_width'] = '1024'; $config['max_height'] = '768'; $this-&gt;load-&gt;library('upload', $config); $this-&gt;load-&gt;library('Multi_upload'); $files = $this-&gt;multi_upload-&gt;go_upload(); if ( ! $files ) { $data['error'] = $this-&gt;upload-&gt;display_errors(); } else { $data = array('upload_data' =&gt; $files); } } $id = $this-&gt;uri-&gt;segment(3); $data['query'] = $this-&gt;administrator_model-&gt;getAllPhoto($id); $data['current'] = 'home'; $data['side'] = 'gallery'; $data['attr'] = 'view_album'; $data['content'] = 'backend/administrator_manage'; $data['sidebar'] = 'backend/home_sidebar'; $this-&gt;load-&gt;view("backend/index", $data); } </code></pre> <p>// multi upload library i use from <a href="http://www.mitesdesign.com/blog/open-source/multi-upload-jquery-code-igniter" rel="nofollow">here</a></p> <p>with little modification</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