Go to Post ...too much to do... ...too little time... - Joe Johnson [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > CD Forum Support
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-11-2001, 01:22
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-11-2001, 04:21
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
PHP Code:
$FILESIZE=250000;

if ( 
filesize($source) > $FILESIZE ) { 
  
// .. error .. 


'filesize' returns the file size in bytes.
__________________
Brandon Martus
e-mail
Reply With Quote
  #3   Spotlight this post!  
Unread 26-11-2001, 10:48
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
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
Reply With Quote
  #4   Spotlight this post!  
Unread 26-11-2001, 11:29
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Of course, that could be corrected to a "true" 250KB by changing the code so it looks something like this...

PHP Code:
$FILESIZE=250;

if ( (
filesize($source) / 1024) > $FILESIZE ) { 
  
// .. error .. 

__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 05:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi