Hello. Tell me who implements how to upload files to the server. This means not the download process itself, but the principle of storing the downloaded files. I wrote my script for uploading files and save them to the user's folder with the same file name as on the user's PC.
But I noticed that most of the sites after downloading rename the file name to its example, the same VK when downloading photos 001.jpg save it under the name QV00tYkq.jpg
Who knows, tell me what it is done for and how to create a short and unique name for the file? So far, only the thought of giving new names to files by uniqid () came to mind