hi,
neverending story "file upload" 🙂
How do you folks would solve the following:
I got i pages which should enable the user
to upload 0 to n files to a corresponding dataset.
hiting a save button should add the relations to db ...
hiting a cancelbutton has to delete the uploaded files and in
case there have already been files for this dataset revert things
to a preedit status.
there is also a per file delete button which makes it possible to delete single files.
deletion should also be revertable by canceling.
As you can see there are several problems one is
the handling of the upload/cancel/deletion transaction.
The other is : How to get rid of unused files which will probably generated by hit the browsers back button or closing the window.
So IMHO a garbage collecter would be mandatory.
Any hints are wellcome 🙂
regards,
niko