I don't think so, but you could write the parts to the output stream while
reading from the source and not consume php memory.


On Sun, Jan 6, 2013 at 6:25 PM, ADmad <notifications@github.com> wrote:

> In lib/Cake/Network/Http/FormData.php:
>
> > +		return $this;
> > +	}
> > +
> > +/**
> > + * Add either a file reference (string starting with @)
> > + * or a file handle.
> > + *
> > + * @param string $name The name to use.
> > + * @param mixed $value Either a string filename, or a filehandle.
> > + * @return void
> > + */
> > +	public function addFile($name, $value) {
> > +		$filename = false;
> > +		$contentType = 'application/octet-stream';
> > +		if (is_resource($value)) {
> > +			$content = stream_get_contents($value);
>
> Is direct streaming possible for multipart message?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cakephp/cakephp/pull/1057/files#r2560302>.
>
>