i'm having a application where a user can fill out a list. for example:
each list item is a text input field and a file upload field for a
the user can add new list items by clicking on a button.
now wondering how to deal with situations where the user
wrote text, selected a file for an existing item and then presses
the 'add new item' button, before actually saving the item she/he
just filled out.
adding a new item requires some server action to executed. so
i'm forced to store the values the user entered, but didnt save
yet, temporary and use them again (instead of the real values)
when the edit pages comes up again.
now my problem:
i cant force the file input element to pick up the files the user
selected before the 'add new item' request.
basically there are only three ways:
* ignore it completely and let the user pick the files again
* find some way to display the current saved photo, the
temporary unsaved photo and the file input dialog
* display the temporary unsaved photo like a 'current saved photo'
all three ways unfortunately sound kinda bad to me.