Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 19, 2026 - @495.53 (what is this?)
Activity rating: Four Stars Posts & Arts: 53/1k.beats ~ Boop! The forum will close in 505.beats! Random | Recent Posts | Guild Recents
News: :seal: Thank you for today! :seal: Guild Events: There are no events!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  Is there a recommended max size for files and images?


« previous next »
Pages: [1] Print
Author Topic: Is there a recommended max size for files and images?  (Read 355 times)
Keeso
Newbie
*
View Profile


Hell0! I'm Keeso, i code and make weird musi
⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2026!
« on: March 26, 2026 @496.26 »

I’m working on making a discussion forum for sharing music and samples and such. I haven’t decided yet if i’m going with something like 23 buckets for storing files or locally. In the beginning locally is probably easier and i can switch to s3 buckets if the site grows. But i was wondering if i should set a limit on file size. Any recommendations or thoughts are appreciated! :pc:  :wizard:
Logged

:skull::pc::skull:
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
« Reply #1 on: March 26, 2026 @662.13 »

Fortunately, you're equipped to do the maths on this one, because of how we measure the compression levels of common audio formats!

Take the longest audio file you'd expect to permit. E.g. maybe you don't anticipate anybody wanting to upload anything over 6 minutes, i.e. 360 seconds.

Take the maximum bitrate you'd expect to tolerate. For spoken-word, 96kbps MP3s (or lower) are usually fine, but for higher-fidelity music and samples you might be looking at e.g. 256kbps. If you need to, re-encode some of your music in a few different compression levels and see when you can tell the difference, then assume that some of your users have slightly more "golden ears" than you and step up a level. Let's say you chose e.g. 256kbps.

Multiply those two numbers together, then divide by 8 to get the expected kilobyte file size (after metadata, but that's pretty small!) of such a file; then divide by 1024 to get that in megabytes. So if somebody uploaded a 6 minute MP3 at 256kbps we'd expect it to weigh in at a hair over 360 × 256 / 8 / 1024 = 11.25Mb. Anything shorter or lower-quality (or both) than those two limits would be a smaller file size, so that'd be your upper limit.
Logged


Artifact Swap: I met Dan Q on Melonland!PolyamorousBouncy Egg!Joined 2025!Lurby
Keeso
Newbie
*
View Profile


Hell0! I'm Keeso, i code and make weird musi
⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2026!
« Reply #2 on: March 26, 2026 @687.52 »

Wow thank you! I don’t quite understand why you divide by 8 but now i have a formula to go by anyway so thank you :seal :skull:
Logged

:skull::pc::skull:
candycanearter07
Hero Member ⚓︎
*****
View Profile WWWArt


i like slimes
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: candycanearter
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
it's tbhchansey!Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy Cane
« Reply #3 on: March 27, 2026 @529.86 »

Wow thank you! I don’t quite understand why you divide by 8 but now i have a formula to go by anyway so thank you :seal :skull:

A good rule of thumb is that whenever you divide or multiply by 8, its to convert between BITS and BYTES. It's a tiny bit confusing since a lot of acronyms don't differentiate (Kbps vs Kb), but bitrate is defined in kiloBITS per second, so you need to divide by 8 to get the kiloBYTE number.
Logged

new to oldnet be nice





Artifact Swap: charry zardWaxed Lightly Weathered Cut Copper StairsshoeDS Lover (replacement)Ball Creaturecards all the way down
Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi

MelonLand Nav

@000

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net