I got a problem with naming a image that is uploaded to the server.
When the user submits a form with information and a "file" - the server uploads the file, and store the data in a mysql database. The problem is that I need to change the name of the uploaded picture to the same as the value of the the ID field in the database. (the field is auto_increment)
There can be many uploads at the same time - so it would be best if the picture was uploaded with the new name.
How do I solve this problem?
😕 😕 😕 😕