Hi,
if I use in the "upload files" the file name provider "{var: upload12.file.name}. {var: upload12.file.extension}" and upload a new image with the same name on the server, then the image correctly overwritten in the folder.
But that a user can not overwrite the image on the server by mistake or maybe for example, if multiple users upload an image with the same name at the same time, the file should be given a different name (for example, the unique "uuid" as the name).
Everything is ok so far. But there is a problem:
If then the files get a different name, then the "old" files are not overwritten anymore and to many "old" files are accumulating on the server.
For example, can I use CF6 to upload / save an image on the server to execute a SQL transaction that deletes / overwrites or adds an old file?
Or what easy way can I do with CF6 to avoid old, unused images on the server?
F.
if I use in the "upload files" the file name provider "{var: upload12.file.name}. {var: upload12.file.extension}" and upload a new image with the same name on the server, then the image correctly overwritten in the folder.
But that a user can not overwrite the image on the server by mistake or maybe for example, if multiple users upload an image with the same name at the same time, the file should be given a different name (for example, the unique "uuid" as the name).
Everything is ok so far. But there is a problem:
If then the files get a different name, then the "old" files are not overwritten anymore and to many "old" files are accumulating on the server.
For example, can I use CF6 to upload / save an image on the server to execute a SQL transaction that deletes / overwrites or adds an old file?
Or what easy way can I do with CF6 to avoid old, unused images on the server?
F.