PhlyRestfully icon indicating copy to clipboard operation
PhlyRestfully copied to clipboard

File uploads

Open macnibblet opened this issue 11 years ago • 1 comments

To be honest im not sure if this is an issue that is actually related to PhlyRestfully or if its an issue with Zend\Mvc\Controller\AbstractRestfullController i think it's the later.

But when doing a POST, PUT or PATCH against a resource/collection with a file and proper enctype it should

1, Be available in the data variable 2, Be available in a files variable

i prefer the first in this case since it makes working with forms/inputfilters so much easier.

macnibblet avatar Jun 24 '13 09:06 macnibblet

As noted in IRC, one suggestion I have is to post files to separate resource end points, and then refer to the file resource in the resource that composes the file. It will be a little less easy for the consumer, but perhaps more manageable server-side.

weierophinney avatar Jul 23 '13 21:07 weierophinney