So I have a script which uploads a file to a specific folder. I want to get URL of the most recently uploaded item in that folder? How would I accomplish this in as simple a manner is possibly.
For example, say I have a folder called "Photos", and I want to retrieve the latest item that was uploaded to that folder and display it somewhere. How can I get that URL? You may assume "Photos" is a shared folder.
Hash the file names, stored the last file name into database
Rename the file names using timestamp
Get the URL of the last item added to a folder