Yeah, I have concerns with duplicate file naming for sure and guid will certainly fix that, the problem I find is that I am generally creating content management type systems that are controlling the front end of a site wanting to get the best SEO possible, and because image names and alternate text are a small SEO metric and because i want Google Images to crawl me, I do not want filenames like, guid.jpg.
I just find the image upload steps so seamless in Wappler, however this one little missing thing causes me endless headaches, especially when it comes to upper or lowercase file extensions.
Scenarios I hit are when I want an upload named my-upload.JPG
to save out one copy to an original uploads directory and for it to create a second copy as a thumbnail, and for some reason the original retains its uppercase JPG while the autogenerated thumbnail gets a lowercase jpg extension.
As I say the current upload procedure with images at least is so easy, yet this one thing keeps being the cause of many issues, I mean yes, I can get around it with SetValue steps to use the formatters etc. but it makes far more steps and far more brain power than it maybe should.
The first step File Upload
would be the perfect place for the rename to happen as then that. name is bound to almost every other step with its name, path, url bindings, and also, while the Save Image step can be bound to save the name to the database down the line.
Basically it just seems a shame that the upload procedure with resize, crop, cover fit, save, takes about a minute to implement, and then i mess around with file naming for another hour afterwards, and seem to have never quite gotten it right as I still get bug reports where its often file name related. I just got one a few hours ago which prompted this post, however that actually turned out to be something to do with Sharp not handlng HEIC codec, which is the first time I have seen that, had to open the image in Apple Preview and resave it to get it uploaded.