[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-23-2006, 07:25 PM   #1 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 133
10.00 NP$ (Donate)

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, 07:28 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 07:31 PM   #3 (permalink)
Senior Member
 
lpxxfaintxx's Avatar
 
Join Date: May 2006
Location: Irvine, CA
Posts: 1,060
261.85 NP$ (Donate)

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, 07:36 PM   #4 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 08:30 PM   #5 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
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, 10:40 PM   #6 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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
Quote:
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.

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, 03:34 AM   #7 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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
Quote:
Originally Posted by SecondVersion
upload_max_filesize is PHP_INI_PERDIR
Huh?
Dan is offline  
Old 08-24-2006, 03:53 AM   #8 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 133
10.00 NP$ (Donate)

spacetrain will become famous soon enoughspacetrain will become famous soon enough


Quote:
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.

- Steve
Well how does megaupload manage it with 250mb upload files?
spacetrain is offline  
Old 08-24-2006, 01:37 PM   #9 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 05:26 PM   #10 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 133
10.00 NP$ (Donate)

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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:35 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85