NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Upload Not Working?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-23-2006, 08:25 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: May 2006
Posts: 133
spacetrain will become famous soon enoughspacetrain will become famous soon enough
 



Upload Not Working?


Hey,

I own www.filegeeks.com and the upload works with smaller files however i tried uploading a 12mb file and it didnt work. Can anyone see a reason for this?

Thanks
spacetrain is offline  
Old 08-23-2006, 08:28 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Your php.ini is set to only allow files under that size.

<?php ini_set('upload_max_filesize', '100M'); ?>

That will allow 100MB files. (I think.. didn't test it.)

If it doesn't work, try:

<?php ini_set('upload_max_filesize', 100M); ?>
Dan is offline  
Old 08-23-2006, 08:31 PM   #3 (permalink)
Senior Member
 
lpxxfaintxx's Avatar
Join Date: May 2006
Location: Irvine, CA
Posts: 1,082
lpxxfaintxx is just really nicelpxxfaintxx is just really nicelpxxfaintxx is just really nicelpxxfaintxx is just really nice
 



Are you sure 100M would work? Shouldn't it be like 100,000KB or something like that?
lpxxfaintxx is offline  
Old 08-23-2006, 08:36 PM   #4 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
In my php.ini, it was set to 2M. I'm basing it off of that.
Quote:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "D:/www/tmp"

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Dan is offline  
Old 08-23-2006, 09:30 PM   #5 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
upload_max_filesize is PHP_INI_PERDIR, use .htaccess
Code:
php_flag upload_max_filesize 8M
# or
php_value upload_max_filesize 8M
Eric is offline  
Old 08-23-2006, 11:40 PM   #6 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Originally Posted by SecondVersion
upload_max_filesize is PHP_INI_PERDIR, use .htaccess
Code:
php_flag upload_max_filesize 8M
# or
php_value upload_max_filesize 8M
That will commonly create a 500 internal error.
????: NamePros.com http://www.namepros.com/programming/230919-upload-not-working.html

I would ask your host to change the upload_max_filesize in your php.ini file to 20mb or something. Than for you I would suggest using another method of uploading or upload in parts because alot of browsers will not handle 12mb uploads and will timeout.

- Steve
__________________
I feel old.
iNod is offline  
Old 08-24-2006, 04:34 AM   #7 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Originally Posted by SecondVersion
upload_max_filesize is PHP_INI_PERDIR
Huh?
Dan is offline  
Old 08-24-2006, 04:53 AM THREAD STARTER               #8 (permalink)
NamePros Member
Join Date: May 2006
Posts: 133
spacetrain will become famous soon enoughspacetrain will become famous soon enough
 



Originally Posted by iNod
That will commonly create a 500 internal error.

I would ask your host to change the upload_max_filesize in your php.ini file to 20mb or something. Than for you I would suggest using another method of uploading or upload in parts because alot of browsers will not handle 12mb uploads and will timeout.
????: NamePros.com http://www.namepros.com/showthread.php?t=230919

- Steve
Well how does megaupload manage it with 250mb upload files?
spacetrain is offline  
Old 08-24-2006, 02:37 PM   #9 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
megaupload uses an other system which allows the browser to feed parts of the file. Which it uploads and than combines all togeather at the end. It keeps the connection alive and makes the browser not timeout.

- Steve
__________________
I feel old.
iNod is offline  
Old 08-24-2006, 06:26 PM THREAD STARTER               #10 (permalink)
NamePros Member
Join Date: May 2006
Posts: 133
spacetrain will become famous soon enoughspacetrain will become famous soon enough
 



Do you know any scripts which have this functionality? That i can look at the source?
spacetrain is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:24 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger