How to get uploaded date from listFiles()

I'm not sure why, but listFiles() does not return the uploaded date? Is there a way to do it?
5 Replies
choco
choco2w ago
by sending request to https://utfs.io/f/YOURFILEKEY you can get headers that has last modified data
schmell
schmellOP2w ago
Sorry. I'm not sure I follow? How would i do this?
choco
choco2w ago
you have a file key right? of the file you uploaded. you can get the file by this link https://utfs.io/f/YOURFILEKEY when you send request to that link you will have body with file and headers. in headers there are last-modified header
schmell
schmellOP7d ago
Hey thanks, but the question is how to get a list of file info's including the uploaded date info. Your method is for one file and it would return the entire image not just the info. Thanks again
choco
choco7d ago
i might be wrong but i dont think that you can get that info from listFiles method. also instead of get request that will return image itself can make head request that will return headers only (with a date).
Want results from more Discord servers?
Add your server