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
Clear up language regarding file upload and media endpoint #29
Comments
@richardcarls Thanks for the note! I agree that a server shouldn't be required to accept file uploads if there is a media endpoint specified. What part of the spec indicated that the endpoint is required to accept file uploads? I am reviewing it and can't find a mention of that. I can make it more explicit that if there is a media endpoint specified, the micropub endpoint doesn't need to handle uploads though. |
If a client queries a micropub server and discovers it's not configured with a media endpoint, does it then assume that the server will accept multipart as a fallback? There are a couple sections on including files for certain properties; explicitly stating "in the absence of a media endpoint, a client [must | may] include files with other properties in a multipart request" would help clear things up. |
Yes, that's the behavior I would expect. I'll add some language to help clear it up. Thanks! |
Thanks! This has been addressed in the latest draft. Specifically, http://micropub.net/draft/#uploading-files and http://micropub.net/draft/#conformance-classes If this addresses the issue to your satisfaction would you please close the issue? Thanks! |
In addition to specifying multipart/form-data as required in the absence of a media endpoint, I think it would be good to conversely specify x-www-form-urlencoded as required in conjunction with a media endpoint. Currently there's no server requirement stated for supporting good 'ole urlencoded on create. |
I agree with this:
It allows a simple client, like an HTML form posting directly to an endpoint, to trivially support file uploads by posting multipart/form-data exclusively.
On the other hand, a micropub endpoint shouldn't need to be responsible for receiving and processing (and storing) file uploads, when this is already covered by Media Endpoint.
If I'm reading the spec correctly, a micropub endpoint is now required to accept file uploads via multipart. As an aspiring implementer/contributor, this is kind of a turn-off. I would rather deal with uploads separately, or better yet, delegate to some kind of futuristic Media Endpoint service that handles it all for me.
The text was updated successfully, but these errors were encountered: