[eluser]deadfrog[/eluser]
Hi all. I have a controller with a function called do_upload which manages file uploads. It either succeeds or fails, and this works fine.
The form action is:
Code:
<?php echo form_open_multipart('upload/do_upload'); ?>
And if the upload fails, it all works as I want except the URL changes to this:
Code:
http://xxx:8888/upload/do_upload
I call my index function and pass in the error array:
Code:
$this->index($errors);
but ideally I'd like the URL to revert back to what it was before. Is this easy/possible?