redirect issue file upload. |
I can upload multiple images fine on my upload function if comment out my redirect on my upload function.
How ever if I enable the redirect it will only upload one for some reason very strange to me. When upload is success full I would like to use redirect('filemanager') Any suggestion and example why the redirect would stop multiple upload. PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
You are redirecting from inside your loop. So indeed you get redirected after the first files is procesed. You want to redirect after the loop is finished so you should place it below.
(02-18-2016, 01:42 AM)Diederik Wrote: You are redirecting from inside your loop. So indeed you get redirected after the first files is procesed. You want to redirect after the loop is finished so you should place it below. Does this seem better to you PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
You would improve it by:
PHP Code: if( ! $this->upload->do_upload() ) { |
Welcome Guest, Not a member yet? Register Sign In |