Professional Web Applications Themes

Uploading files / POST - PHP Development

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

  1. #1

    Default Uploading files / POST

    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
    Guillaume Guest

  2. #2

    Default Re: Uploading files / POST

    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).

    ZeldorBlat Guest

  3. #3

    Default Re: Uploading files / POST

    ZeldorBlat a écrit : 
    It is of course ... where could I find some example scripts for this ?
    Thanks
    Guillaume Guest

  4. #4

    Default Re: Uploading files / POST

    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.

    Regards
    Stefan
     
    Stefan Guest

  5. #5

    Default Re: Uploading files / POST

    Stefan Rybacki a écrit : 
    >
    >
    > 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.
    >[/ref]
    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
     [/ref]
    Guillaume Guest

  6. #6

    Default Re: Uploading files / POST

    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" <net>
    ???????:42f2f037$0$28661$free.fr... 


    Danny Guest

  7. #7

    Default Re: Uploading files / POST

    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)

    SoSaucily@gmail.com Guest

Similar Threads

  1. Uploading files
    By Sammy the Bull in forum Macromedia Contribute General Discussion
    Replies: 33
    Last Post: September 20th, 05:31 AM
  2. Problems: uploading files have Chinese named files
    By Andrew Chan in forum ASP.NET Web Services
    Replies: 0
    Last Post: April 16th, 07:50 AM
  3. Uploading Files - help please
    By Steve in forum ASP.NET General
    Replies: 1
    Last Post: July 16th, 05:31 PM
  4. Uploading files using FTP in ASP.NET
    By Ken Cox [Microsoft MVP] in forum ASP.NET General
    Replies: 0
    Last Post: July 5th, 11:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139