Doc #19238 [Com]: addUpload cannot take string containing file contents

From: Date: Sun, 04 Mar 2012 15:46:18 +0000
Subject: Doc #19238 [Com]: addUpload cannot take string containing file contents
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8355@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19238&edit=1 ID: 19238 Comment by: richard_s_yeo@yahoo.co.uk Reported By: richard_s_yeo at yahoo dot co dot uk Summary: addUpload cannot take string containing file contents Status: Assigned Type: Documentation Problem Package: HTTP_Request2 Operating System: Windows 7 Package Version: 2.0.0 PHP Version: 5.3.5 Assigned To: avb Roadmap Versions: New Comment: Thanks for comment about updating documentation. How about this though? Add option to upload file by passing string rather than filename or php://memory Previous Comments: ------------------------------------------------------------------------ [2012-02-02 15:20:52] avb -Status: Open +Status: Assigned -Type: Feature/Change Request +Type: Documentation Problem -Assigned To: +Assigned To: avb Documentation should indeed be updated to mention that addUpload() and setBody() can accept file resources as well as file names. Links to PHP docs dealing with php:// streams won't hurt as well. ------------------------------------------------------------------------ [2012-01-22 11:27:34] richardy Description: ------------ addUpload cannot take string containing file contents. php://memory can be used but this doesn't work with file_get_contents, etc. I may be wrong but being able to use php://memory may not be documented. Add option to upload file passing string rather than filename or php://memory ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19238&edit=1

« previous php.pear.bugs (#8355) next »