| Author |
Uploading files / POST
|
|
| Guillaume ALLEON 2005-08-05, 3:59 am |
| I use POST to transfer a file from my client to the server. It is
working up to a limit. Trying to transfer a file of 60 MBytes fails
with an error message of 3 which seems to mean "file partially
transfered" ?!
I did setin /etc/php.ini:
post_max-size = 80M
;;;;;;;;;;;;;;;;
; 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 =
; Maximum allowed size for uploaded files.
upload_max_filesize = 80M
and in /etc/httpd/conf.d/php.conf
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo On
LimitRequestBody 2097152
</Files>
Any suggestion ? - I am running RedHat 9 & php-4.3.4-1.1.
Guillaume
| |
| ZeldorBlat 2005-08-05, 3:59 am |
| You might want to look at max_execution_time in php.ini. It's the
maximum amount of time that a script may spend executing. Could be
timing out before the upload completes.
That's a fairly large file to be submitting via HTTP POST. You might
want to consider FTP instead (if it's an option).
| |
| Guillaume ALLEON 2005-08-05, 3:59 am |
| ZeldorBlat a écrit :
> You might want to look at max_execution_time in php.ini. It's the
> maximum amount of time that a script may spend executing. Could be
> timing out before the upload completes.
>
> That's a fairly large file to be submitting via HTTP POST. You might
> want to consider FTP instead (if it's an option).
>
It is of course ... where could I find some example scripts for this ?
Thanks
| |
| Stefan Rybacki 2005-08-05, 8:59 am |
| ZeldorBlat wrote:
> You might want to look at max_execution_time in php.ini. It's the
> maximum amount of time that a script may spend executing. Could be
> timing out before the upload completes.
No. You may want to look at max_input_time. Because of file uploads are before the script
runs max_execution_time doesn't take care.
Regards
Stefan
>
> That's a fairly large file to be submitting via HTTP POST. You might
> want to consider FTP instead (if it's an option).
>
| |
| Guillaume ALLEON 2005-08-09, 5:01 pm |
| Stefan Rybacki a écrit :
> ZeldorBlat wrote:
>
>
>
> No. You may want to look at max_input_time. Because of file uploads are
> before the script runs max_execution_time doesn't take care.
>
Well I put parameters ten times larger than previously and I still have
the file partially transfered. Any hint to trace the problem ?
Thanks
Guillaume
[color=darkred]
>
> Regards
> Stefan
>
| |
| Danny Wong 2005-08-10, 9:01 am |
| Hi,
Seems the php.ini in the server blocks the file size. Refer to php
manual, the default upload size is limited to 2M. You may need to check
with the server administrator. If you are using virtual hosting service,
you may need to use other method like ftp to upload such large file. Hope
this help.
Danny
"Guillaume ALLEON" <guillaume.alleon@laposte.net>
???????:42f2f037$0$28661$636a15ce@news.free.fr...
>I use POST to transfer a file from my client to the server. It is
> working up to a limit. Trying to transfer a file of 60 MBytes fails
> with an error message of 3 which seems to mean "file partially
> transfered" ?!
>
> I did setin /etc/php.ini:
>
> post_max-size = 80M
> ;;;;;;;;;;;;;;;;
> ; 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 =
>
> ; Maximum allowed size for uploaded files.
> upload_max_filesize = 80M
>
> and in /etc/httpd/conf.d/php.conf
>
> #
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> AcceptPathInfo On
> LimitRequestBody 2097152
> </Files>
>
> Any suggestion ? - I am running RedHat 9 & php-4.3.4-1.1.
>
> Guillaume
| |
| SoSaucily@gmail.com 2005-08-11, 9:59 pm |
| I'm having the same issue on windows and IIS. Anything over about 3k
files throw a 'partially uploaded' error.
Could this be a network issue? Cause I can't believe that my php
settings could be doing that. (I've checked 'em anyway)
|
|
|
|