i am creating a form for a recipe site and would like to make it as
simple as possible. ive done some researching all day today and it seems
that trying to upload multiple files on 1 form using ajax may not be the
best solution if i want to keep eveything simple and maintanable. if you
look at the attachment, i had a vision where the user would upload a
photo, the code would then return a thumbnail next to the photo that was
just uploaded, and bump the upload photo option down by one, so the user
can upload additional photos.
the problem with this is that the user has not submitted the recipe yet.
but i guess i can get around this by associating each uploaded photo
with a form recipe ID. but if the user decides to cancel the recipe, i
may need to add a cleanup for the photo that was uploaded? would this be
worth pursueing, or maybe it would just be easier that in each user
account, i can just give the user a gallery section where they can
upload photos one by one under each recipe?. what would be the best
solution for this?