上传表格 - 无法上传/发布超过120 Kb

I am building a website with an upload form. It will upload only up to 120 Kb but the browser times out if anything bigger is tried. No error message, the browser just times out.

What I've done so far:

  1. Changed all php.ini settings, .htaccess settings;

  2. Tried different browsers;

  3. Rebuilt the form on another server (hosting company) and it works fine (removed everything from the upload except the bare basics);

This is where it starts getting weird. It works fine on my friends computer.

I think I've eliminated:

  1. The coding - because it does work;
  2. The server - because it works fine on their computers and on my friends computer
  3. The browser - Well I've used another web-hosting company and the form works fine with them, so I'm guessing it's not a browser problem, or even my internet connection problem or maybe even settings on my computer?

The problem is on my website the form won't work for anything over 120 kb. On the test website on another server it does work. It's only my computer it doesn't work on other peoples computers it does work. Why and why set at 120 kb. Am I missing something?? I'm taking this very personally, it's as if the internet, my computer, or technology just doesn't like me.

EDIT 1:

I've just tried something else. I got another computer and tried it on that to eliminate the possibility it was a problem with the computer. Still doesn't work on a different computer at my house - so I'm thinking my broadband provider? But that doesn't explain why the test website on another server works okay??

Review your settings in:

php.ini

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size=10M

; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize=512M

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 10

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30 

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; http://php.net/max-input-time
max_input_time = 60

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M

It's important after editing php.ini file to restart your httpd server, to re-read php.ini file!

Make sure that you set units correctly. There is no shorthand-bytes like "MB". You should use "K", "M", "G" for that. Check this PHP FAQ.

httpd.conf or/and .htaccess

php_value post_max_size 10M
php_value upload_max_filesize 512M

If it really is only your computer, it probably is a browser problem. Have you tried different browsers on your computer? Have you tried disabling all browser plugins and extensions?

If you changed all of your PHP settings in php.ini & you are sure that they are set—perhaps via phpinfo() reflecting your settings—and it still doesn’t work it sounds like it might be a firewall issue where the network itself is limiting content being uploaded.

Unclear what this server is or where you have it setup, but I bet a firewall setting is in play.