Uploading files with AJAX before writing to the database

0

I have a product registration form where you can select multiple photos. So far so good, but I need to perform some validations on the photos selected. And from what I've seen it's only possible to upload those files via AJAX the moment they are uploaded by the user into the form.

The question is how can I upload these photos and the product itself has not yet been written to the database? Is there a temporary folder or table created for this?

For those who can not understand, I want to do something similar to the form of registration of ads of Mercado Livre, OLX, etc. I do not want the user to have to register the photos in a second step.

    
asked by anonymous 09.08.2018 / 02:55

0 answers