I am implementing a system that allows you to add multiple attachments
to a message. This raises a problem tho.
If I try to upload the attachments BEFORE adding the message (thus
creating an ID to relate the attachment to), I will need to find a way
to store the attachments on a temporary way that will allow me to attach
one another later. But, if the user closes the browser before inserting
the message, I get temporary and unecessary files lying around. If I
only allow one attachment at a time, this can also raise a few problems:
- You add a 20mb attachment and then your form doesn’t validate, wich
means you’ll have to upload again
- You will have to edit that message to attach more files (wich, IMHO,
doesn’t make much sense).
What would you do and how?
Thanks in advance,