Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Show file size for items in library

I'd like to stay within my quota but don't know which artwork file is the biggest offender. Perhaps I uploaded a 10 MB file when a 2 MB one would do fine. Bonus points if you can point which campaign and page it is being used on, but that is a stretch feature. It seems files are uploaded to S3. They have a List option where you can get the file size in human readable format.  Simply showing the top 50 items in your library sorted by max file size would do wonders in keeping tabs on the biggest files I have in my library.
I would fully agree with this. Also adding onto it just in general a much much easier way to manage your library.
Don't forget: If you use sounds or music in your games, audio files are likely taking up more space in your Storage Quota. Check Manage Audio in the menu along the top of the page to delete audio files.
Here is the documentation for listing files in s3&nbsp; <a href="https://docs.aws.amazon.com/" rel="nofollow">https://docs.aws.amazon.com/</a> cli/latest/reference/s3/ls. html
As storage is billed/limited good insight in used storage is a neccesity. Storage size calculation is a big mystery at the moment. For me, the accounted storage is 50% higher than the size of the assets i uploaded (no music was uploaded).&nbsp; Might be due to the fact that Roll20 stores thumb/min/medium/max versions of the same image.&nbsp;Also it might have something to do with the fact that&nbsp; recently all uploaded jpg's (small) are converted to png format (large)&nbsp; <a href="https://app.roll20.net/forum/post/8549246/extremely-blurry-background-images/?pageforid=8683121#post-8683121" rel="nofollow">https://app.roll20.net/forum/post/8549246/extremely-blurry-background-images/?pageforid=8683121#post-8683121</a>
I've found a hack. In chrome you can hit F12 to open the developers console and execute arbitrary javascript. I opened my library and looked at my recent uploads and just kept scrolling down till my entire library was loaded into the list.&nbsp; This list has each element tagged with a specific class recentupload.&nbsp; The developers were so kind as to add an attribute to these elements saying the size of the file right in the html element.&nbsp; Almost like they were going to add it to the list but didn't for some nefarious reason.&nbsp; Executing the following code will print to the console the file names and file sizes. You can then copy it out into a spreadsheet, sort and finally pick the files that are too big. Copy their file names and go back to roll20 and use Ctrl + f to find that file and delete it. $('.recentupload').each(function(index) {console.log(this.textContent + ": " + $(this).attr('data-filesize'))})
1591928384

Edited 1591928873
Thanks, Brian! That works in Firefox, too. You may want to add that the Stupid Roll20 Tricks thread ( <a href="https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/" rel="nofollow">https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/</a> ). Edit: Is there any way to get the date too? I tried a bunch of variations like 'data-date', 'data-uploaded_date', etc., but had no luck.
1594026892
[Deleted]
Pro
Marketplace Creator
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .