cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: upload file size limit

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Dec 2008 21:28:04 +0100 (CET)

On Thu, 18 Dec 2008, eugene wu wrote:

> I tried to upload a file by using curl.exe option: --data-urlencode
> paramname_at_filename
>
> It works fine until a file has a size of 1.6MB. The web server can not
> receive the paramname. So curl just does not post the file if its size is
> over a limit.

The --trace-ascii is fine to get to see exactly what curl sends and what the
server responds. I doubt this is a problem in curl's end. It has no such
imposed limits.

> My question is what is the default maximum upload file size in this
> situation?

The only limit is your system's ability to return memory on malloc() so you
should be fine up to many megabytes in most situations.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-12-18