[ID Discuss] unsaved input

Florian Weber csshsh at structbench.com
Mon Aug 30 11:05:18 PDT 2004


hi!

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 
photo.
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.

what you would you recommend?

thanks for any tipp!

ciao!
florian






More information about the discuss mailing list