Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no limit in Codeigniter for how many files you can upload, however are you uploading more than one file at a time so that you might reach the limit for how big files you may upload? Either in CI config or the server config.</p> <p>EDIT!<br> Try using $this->upload->display_errors() to see what's is going wrong according to CI. My guess now is that the filename allready exists, but I'm curios to see what you get.</p> <p>2nd EDIT!<br> In your configuration or before you load your upload class you can set the setting: max_filename_increment. When overwrite is set to FALSE, use this to set the maximum filename increment for CodeIgniter to append to the filename.</p> <pre><code>$conf['max_filename_increment'] = // What ever number you think is reasonable </code></pre> <p>Fix this and you should be good to go again :)</p> <p>3rd EDIT!<br> I'm sorry that setting isn't available yet. So either you have to add your own upload class in your applications folder there are guides for how to add custom libraries to codeigniter else you will have to edit the Upload class in system. Note that it is not recommended to update anything in the system folder since it would be overwritten if you would update you version of CI later.</p> <p>But I will of course let you know how to edit the class if you want to;</p> <p>In the folder libraries in CI system you find the file Upload.php. In the latest version you find the function set_filename() on row 390. Scroll down to row 406 and you should see</p> <pre><code>for ($i = 1; $i &lt; 100; $i++) </code></pre> <p>This is the loop that takes too few turns for your file names to be incremented. exchange 100 to a new number and try again.</p> <pre><code>for ($i = 1; $i &lt; 1000; $i++) </code></pre> <p>That will loop ten times more than before, but I guess the limit is there for performance so check your response times before and after editing this and when uploading 3-500 files with the same name?</p> <p>Regards</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.
 

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