|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
image upload max size
In the image upload page, it says the max size is 250kb. Do you really mean 250 kilo-bit, or do you mean kilo-byte? I tried to upload a pic that's 248kB and it didn't go through because it's too big.
|
|
#2
|
|||||
|
|||||
|
PHP Code:
'filesize' returns the file size in bytes. |
|
#3
|
||||
|
||||
|
kilo != 1000
Ok, now I know what my problem is. My 248KB file is less than 250KB but greater than 250,000B
![]() A little clarification for those who are confused. In computers, 1 kilo does not equal 1000 (10^3), it's actually 1024 (2^10). mega (2^20), giga (2^30), tera (2^40) and whatever's after that also differ from the metric prefixes. So after a quick calculation, my 248KB file is actually (248KB * (1024B / 1KB)) = 253,925B. Mike |
|
#4
|
|||||
|
|||||
|
Of course, that could be corrected to a "true" 250KB by changing the code so it looks something like this...
PHP Code:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Robot Mechanisms Image Database | archiver | 2001 | 0 | 23-06-2002 22:14 |
| Text effects in 3DS Max... | Ranma | 3D Animation and Competition | 6 | 28-02-2002 21:56 |
| FIRST MAX Animation Tutorials | Robby O | 3D Animation and Competition | 2 | 01-02-2002 22:53 |
| Ahhhh! I've had it with 3dstudio max! | AnnyRob | 3D Animation and Competition | 6 | 29-01-2002 11:23 |
| Autodesk Inventor -> 3ds Max (File Format) | Adrian Wong | Inventor | 1 | 22-01-2002 23:06 |