Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2011
Posts: 136
S
member
member
S Offline
Joined: Apr 2011
Posts: 136
if I want to let peeps upload images up to 5 mb's what number do I put?

What about the same for Maximum size of file attachments?



Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
5*1024*1024 == 5242880 <--

ideally 5M would be nice, but i digress smile

Joined: Apr 2011
Posts: 136
S
member
member
S Offline
Joined: Apr 2011
Posts: 136
thanks not going with 5m just needed an example

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yah, no probs

basically it wants the actual number of bytes and a MEG is 1024 * 1024 bytes

so just multiply by 5 to get 5 meg

some peeps fudge and just go with 5000000, but that is technically a wee bit less than 5 meg wink


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 767 guests, and 208 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)