PhlyRestfully
PhlyRestfully copied to clipboard
File uploads
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.
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.