FTP vs. HTTP file upload limit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dgourd
    New Member
    • Apr 2010
    • 25

    FTP vs. HTTP file upload limit

    I want to include a file upload script on my website. The FTP max file size is unlimited, but the HTTP max file size is lower than the files I want to upload.

    Would using the PHP FTP functions with a file upload form get around this problem, or will it still use HTTP to upload the file to the temporary directory.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    A file upload form (by which I assume you are talking about a standard <form enctype="multip art/form-data"> form) is sent via HTTP. Using FTP server-side will not bypass the fact that the browser sends the file to PHP via a normal HTTP request.

    The only way to increase the allowed size of HTTP uploads is to configure your HTTP server, and PHP, accordingly. - If you can't do that, the only other way to include a upload form on your site is to use a client-side app capable of initiating indipendant, non-HTTP connections. Like a Java app, or possibly Flash.

    Comment

    Working...