Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
March 27, 2026 - @15.22 (what is this?)
Activity rating: Three Stars Posts & Arts: 49/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: inconvenience is counterculture :eyes: Guild Events: There are no events!

+  MelonLand Forum
|-+  World Wild 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 32 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: PolyamorousI met Dan Q on Melonland!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:
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