cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Sending Large Files

From: Jacob Oliver <olivej2_at_gmail.com>
Date: Sun, 17 Jun 2007 22:14:01 -0400

You're right. It still didn't work. When I add -o to the end it gives me:

 % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 11.1M 0 49 100 11.1M 41 9756k 0:00:01 0:00:01 --:--:--
10.6M

really I'm having trouble discerning if the problem is on the php or the
curl side?

simon_at_ice.org wrote:
> There are a few options in php.ini that dictate file uploads -
> notably - POST size, upload size, and also script timeouts.
>
> If you scroll the entire sample ini you should be able to eliminate all
> these variables, but it's probably the POST limit...
>
> Jacob Oliver wrote:
>
>> Hi,
>>
>> I'm trying to curl a movie to a a php file and it won't send the file, I
>> believe this is because of file limits (a 1 MB file works and a 10 MB
>> file doesn't). I don't know if the problem is with curl or php though.
>>
>> Here is my curl statement:
>> curl -F "video_file=@///Users/myname/Desktop/movie.mov"
>> http://localhost/file.php
>>
>> all headers look correct and like I said it works for smaller files.
>>
>> file.php is just one line:
>> echo $HTTP_POST_FILES['video_file']['name'];
>>
>> nothing gets written out
>> and I changed php.ini to allow up to 200MB file uploads and apache to
>> allow unlimited
>>
>> any suggestions?
>>
>> Thank you
>> Jacob
>> _______________________________________________
>> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>>
>>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-06-18