php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53749 File upload parameters
Submitted: 2011-01-14 17:15 UTC Modified: 2011-01-15 22:48 UTC
From: buzz dot public at gmail dot com Assigned: frozenfire (profile)
Status: Closed Package: cURL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-01-14 17:15 UTC] buzz dot public at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.curl-setopt#Parameters
---

In cURL it is possible to specify things like the file name and mime type of a file upload, like "@/tmp/somefile;type=image/png", mentioned in the section "POST (HTTP)" of the cURL documentation (http://curl.haxx.se/docs/manual.html). It could be useful to mention this in the description of the CURLOPT_POSTFIELDS constant.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-15 22:48 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=307501
Log: Added information to CURL_POSTFIELDS regarding explicitly specifying file mimetype, closing bug #53749.
 [2011-01-15 22:48 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2011-01-15 22:48 UTC] frozenfire@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 03:01:32 2024 UTC