-
Notifications
You must be signed in to change notification settings - Fork 9
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
Micropub: Upload of multiple photos fails #7
Comments
Currently the photo upload functionality only supports a single photo in |
@mapkyca - no I've just confirmed this is still not working in 0.9.9 |
I see your patch to the Photo class with support for multiple images but when they come in from a Micropub it looks like the call to
Which then hits "isImage" with an array, throwing: The
|
On looking through |
@mapkyca in this case it's throwing in an odd "user" block at the end of the content: <div class="e-content entry-content multiple-images" data-num-pics="2">
<div class="photo-view">
<a href="https://www.funwhilelost.com/file/9f8949188077202f00631a2cd888aa2f/igQXl4jv.jpg" data-gallery="Long grind up that forest service road but it's tough to beat the view at Sun Top Lookout. " data-original-img="https://www.funwhilelost.com/file/9f8949188077202f00631a2cd888aa2f/igQXl4jv.jpg" data-title="Long grind up that forest service road but it's tough to beat the view at Sun Top Lookout. " data-footer=""><img src="https://www.funwhilelost.com/file/c9037e0d90a5d4126b45c0e70a50bfdb/thumb.jpg" class="u-photo" alt="Long grind up that forest service road but it's tough to beat the view at Sun Top Lookout. "></a>
</div>
<div class="photo-view">
<a href="https://www.funwhilelost.com/file/82d99c16ef564e9196b2a5e9fbd7251a/igoy4bhK.jpg" data-gallery="Long grind up that forest service road but it's tough to beat the view at Sun Top Lookout. " data-original-img="https://www.funwhilelost.com/file/82d99c16ef564e9196b2a5e9fbd7251a/igoy4bhK.jpg" data-title="Long grind up that forest service road but it's tough to beat the view at Sun Top Lookout. " data-footer=""><img src="https://www.funwhilelost.com/file/36c9166a7c9fb47d1fe384d03a81c695/thumb.jpg" class="u-photo" alt="Long grind up that forest service road but it's tough to beat the view at Sun Top Lookout. "></a>
</div>
<!-- WEIRD EMPTY PARAGRAPH -->
<p></p>
<!-- WEIRD UNEXPECTED IMAGE -->
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://www.funwhilelost.com/gfx/users/default.png" alt=""></p>
<p class="tag-row">
<i class="fa fa-tag"></i>
<a href="https://www.funwhilelost.com/tag/+%23mountainbike" class="p-category" rel="tag"> #mountainbike</a>
...
</p>
</div> |
The two |
While trying to do this:
Create a note with two images via the micropub endpoint
Passing two image URLs fails the same:
I encountered this error:
Some other notes:
The micropub draft spec section 3.3 create says:
the error log says:
The text was updated successfully, but these errors were encountered: