svn: /phpdoc/en/trunk/reference/curl/functions/ curl-setopt.xml

From: Date: Sat, 15 Jan 2011 21:48:33 +0000
Subject: svn: /phpdoc/en/trunk/reference/curl/functions/ curl-setopt.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7649@lists.php.net to get a copy of this message
frozenfire Sat, 15 Jan 2011 21:48:33 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307501 Log: Added information to CURL_POSTFIELDS regarding explicitly specifying file mimetype, closing bug #53749. Bug: http://bugs.php.net/53749 (Open) File upload parameters Changed paths: U phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml Modified: phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml =================================================================== --- phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2011-01-15 18:21:26 UTC (rev 307500) +++ phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2011-01-15 21:48:33 UTC (rev 307501) @@ -870,8 +870,10 @@ <simpara> The full data to post in a HTTP "POST" operation. To post a file, prepend a filename with <literal>@</literal> and - use the full path. This can either be passed as a urlencoded - string like '<literal>para1=val1&amp;para2=val2&amp;...</literal>' + use the full path. The filetype can be explicitly specified by + following the filename with the type in the format + '<literal>;type=mimetype</literal>'. This parameter can either be + passed as a urlencoded string like '<literal>para1=val1&amp;para2=val2&amp;...</literal>' or as an array with the field name as key and field data as value. If <parameter>value</parameter> is an array, the <literal>Content-Type</literal> header will be set to

« previous php.doc.cvs (#7649) next »