You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
have you considered to add a file size information to the served index page? It would help for an end-user to verify that the they download the right file, comparing the file size to the expected value.
The text was updated successfully, but these errors were encountered:
I didn't consider adding file size information to the served index page yet, because so far the page isn't even generated by my own code, but instead by Go's standard library's http.FileServer().
But it definitely sounds useful!
We need to be careful to not make things slow though, for example when there are 1000 files in a directory, getting all file sizes in advance might make things slow, and only getting file sizes of the files of the visible lines while the user scrolls on the page would bloat the front-end and require a specific endpoint with pagination on the back-end or something similar.
When this feature is developed, maybe the program can check how many files are in the directory and then either show file sizes for all files or none at all. Try out what's the best number for that with doing some benchmarks.
Hi, thanks for this awesome tool you've built.
have you considered to add a file size information to the served index page? It would help for an end-user to verify that the they download the right file, comparing the file size to the expected value.
The text was updated successfully, but these errors were encountered: