-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Photo from device #7
Comments
Pablo, I believe the API only supports adding url for photo for existing incidents: http://wiki.ushahidi.com/doku.php?id=ushahidi_api#post_methods If the API supports uploading photos for existing incidents, I can make changes to the client to allow this functionality.... |
Just confirmed with David, the API currently does not support uploading new photo, to an existing incident, although this functionality is in the backlog. In the meantime, a work-around, is to upload new photo to 3rd party service, and then link that photo url to existing incident. |
Not sure, see the comment "Note Post data needs to be formatted as multipart/form-data because of the image upload. Its very important". [...] line 746
That's from when you try to add a report through the API. No biggie anyway, we can backlog this for a while. I've just thrown this to the list, we'll see if anyone replies. Priority Low/Med |
Also, when adding a picture (after the shutter, after pressing Save) and error comes up: “Value does not fall iwthin the expected range”. |
Pablo, does this happen if you've specified an Image Size in Settings? |
The CameraCaptureDialog has a Resolution property, which allows you to specify a Size. However, every vendor supports different resolutions. I'll try to do a Registry lookup to check for supported values at HKLM\SOFTWARE\Microsoft\Pictures\Camera\OEM\PictureResolution If this doesn't work, another option is to take the photo at default resolution, and then manually resize the using graphics library... |
Looks like detecting supported photo resolutions via registry is somewhat of a lost cause, appears different vendors like HTC store in different locations. So, as an alternative, I've implemented manually resizing the photo after it's taken, should do the trick for the time being.... |
don't worry, we can do this by selecting the resolution on each phone, We still run the risk of someone trying to upload a house, but it's ok |
Let's rehash this one. Priority=High |
I have noticed that in the last build the capacity to take a picture with the device and add it to the event has been replaced with the "add link to picture". Can we have that functionality back?
The text was updated successfully, but these errors were encountered: