Breaking Bug for DragnDrop Image uploads into posts.
Good day everyione. Just wanted to report that Anchor CMS has a breaking bug on the new posts tool.
If you drag and drop an image into a post. It has the risk of replacing an image with the same file name, if that image has ever been used before. The problem here is that regardless if this is your first post or your 1000th post, all drag and drop images get uploaded to the same folder. And duplicate files names occur more often than you think.
So for example if I include an image called thumbnail.png in my post #2 and then a year later, after numerous blog posts later, I create a new post, post # 654 and also drop a new thumbnail called thumbnail.png. That thumbnail will erase and replace the thumbnail file on post #2.
Now theoretically, this issue can be remedied by changing the code in the uploader (server side) to adding a string of date + time + milliseconds to the file name before it's uploaded, saved and pushed into the DB. I'm currently exploring where I can find the upload code so if anyone cal hint me as to here i can find it, id really appreciate it. If I figure it out, I'll let you guys know.
On the other hand, if this was already done and the solution is already there, let me know.