Posts: 90
Threads: 30
Joined: Mar 2010
Reputation:
1
is there any way to have a confirmation screen for files to edit uploaded files if something went wrong? (like it is possible in formtools administration interface)
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Hannes,
Yeah, this is one of those loose ends I've never managed to tidy up. There's nothing built-in for this, but you could definitely add something yourself.
I'd probably approach it like this: do a test on the form page to see if $_FILES wasn't empty, then after the submission has been updated, check to see if the file actually made it into the DB record. If it didn't, DON'T redirect to the next page and just display an error in the page.
Again (as per my response to your previous post) this is kind of a deficiency in the API. I'll have to give this some more thought. Be very nice if it handled this scenario more gracefully.
- Ben