Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File uploads #83

Open
macnibblet opened this issue Jun 24, 2013 · 1 comment
Open

File uploads #83

macnibblet opened this issue Jun 24, 2013 · 1 comment

Comments

@macnibblet
Copy link
Contributor

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.

@weierophinney
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants