[eluser]rogierb[/eluser]
Here's the situation.Im converting an old system into CI. This means having to do with some poor decissions made a decade ago. Like images.
In the old system the code checks if images exists on disk. The name is the record id of a specifc table and a number. So we have 123.1.jpeg and 123.2.jpg etc.
I want a reference in the database. This is not a problem.
The problem is error handling while uploading.
I need a record_id before I can store the images. The validation is already completed succesfully or else I wouldnt be able to safe the record.
So how do I get any image upload errors back into the form?
Normally I would redirect to an edit form. This is not possible since the edit form is different to the add form.
Any thoughts as to how resolve this?