28, May 2012

filesize check - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: filesize check
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: filesize check  (Read 1780 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: May 21, 2006, 11:04:36 am »

I managed to get your script working easy enough... but why the hell do you have the filesize check AFTER the file uploads?
the script is perfect besides this, waiting for a 20mb file to upload before the script says "...oh your file is too big"

can you please fix the code and paste back here what to change so it is before upload?

thanks a mil

Cam
« Last Edit: May 26, 2006, 09:12:55 pm by olaf »
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: May 21, 2006, 11:33:15 am »

Quote
but why the hell do you have the filesize check AFTER the file uploads?

Php is a server side language. That means that it is not possible to check the size of a file that is not in the server (=if you don't upload the file, it can't access it)

But if you want to check the size of a file on the client (before the upload) maybe you can do it with some kind of client side scripting (javascript, vbscript, java)

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #2 on: May 21, 2006, 11:50:37 am »

ahh, well that is a different story then.

basically a mate and I talk alot and want to send photos, but msn will not work between us. I just wanted a simple script that would allow him to share a photo with me. but because he is bad with computers he would not have a clue if the file is big or not. his dialup internet wouldnt help either when the file turned out too big lol.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: May 21, 2006, 11:56:10 am »

Then I guess it would be easier to learn him how to check the size of a file, instead of finding a way of client side manipulation of it......

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 23, 2006, 09:39:46 am »

ahh, well that is a different story then.

basically a mate and I talk alot and want to send photos, but msn will not work between us. I just wanted a simple script that would allow him to share a photo with me. but because he is bad with computers he would not have a clue if the file is big or not. his dialup internet wouldnt help either when the file turned out too big lol.
Maybe its better to use some photosharing software like picasa (it´s from Google)

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2554
Tags : msn Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: filesize check
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:08:10 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.