curl-and-php
Re: Sending Large Files
Date: Mon, 18 Jun 2007 00:38:57 +0200
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
Received on 2007-06-18