Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;?php if (isset($_FILES['my_file_input'])) { // your code } ?&gt; </code></pre> <p><strong>NOTE:</strong> you descripted a wrong input type if i get you right - file input should use this signature:</p> <p><code>&lt;input type="file" name="my_file_input" /&gt;</code></p> <p><strong>NOTE:</strong> the form the file input is located within should have its enctype set to "multipart-form-data" (or something like that).</p> <p><strong>UPD:</strong> i may be wrong, but here's come controller from the module you have specified:</p> <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Upload extends Controller { function Upload() { parent::Controller(); $this-&gt;load-&gt;helper(array('form', 'url')); } function index() { $this-&gt;load-&gt;view('upload_form'); } function do_upload() { $config['upload_path'] = './uploads/'; // 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 ) { $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors()); $this-&gt;load-&gt;view('upload_form', $error); } else { $data = array('upload_data' =&gt; $files); $this-&gt;load-&gt;view('upload_success', $data); } } } ?&gt; </code></pre> <p>If you still do not get any satisfying results, try <code>var_dump($_FILES);</code> and find out how the files are stored.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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