PHP Upload Timeout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
waradmin
Forum Contributor
Posts: 240
Joined: Fri Nov 04, 2005 2:57 pm

PHP Upload Timeout

Post by waradmin »

This is probably a simple question but here it goes:

I have a file upload script I am working on that has a file size upload limit of 50MB.

When it times out it will display: "you did not pick a file to upload"

I tried to change the settings in my php.ini file but it continues to timeout on uploads around 10MB and higher.

Here are my php.ini settings:

Code: Select all

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60


;;;;;;;;;;;;;;;;
; 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 = C:\apache2triad\temp

; Maximum allowed size for uploaded files.
upload_max_filesize = 50M


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 3000
; Maximum execution time of each script, in seconds
max_input_time = 600
; Maximum amount of time each script may spend parsing request data
memory_limit = 8M
; Maximum amount of memory a script may consume (8MB)
Am I missing something that is causing this to keep timing out?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Can you post your code that's telling you this?
Post Reply