Skip to content

Upload photos from camera source #64

@Harvey-Mushman

Description

@Harvey-Mushman

I have installed ezfb and tested you demo for posting a "feed". I've spent the past two days trying to find a solution to why I can't upload a photo from data created with a camera canvas. I have tried canvas.toDataURL( mySource ), tried converting it to a Blob and attaching it to ezfb.api( source: myblob) but nothing seems to work other than saving the image to a file on a public IP address and then using the FB URL parameter rather than the source. I have done a lot of reading about FB wanting a multipart form but I have not found anyway to create that in ezfb.

Not that it should matter but I'm developing on http://localhost/myDomain and storing the images on my local hd does not get the job done... the url parameter seems to only work from a public domain/ip address - not localhost.

A working sample of this task would be really helpful!

For the SPA I'm developing, it would suck if the client can't post a photo from their camera without first getting storage space on a public server....

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions