Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The point of entry for photo uploads is the /photoUpload API method which is handled by the handlePhotoUpload() method in com.fluxtream.api.BodyTrackController (for more info, see the BodyTrack server APIs).  That method does some basic error checking, and, if successful, it then ensures that the Fluxtream Capture connector is added to the user's set of connectors.  The user cannot manually add the Fluxtream Capture connector in the Add Connector dialog.  Instead, the connector is added automatically upon first upload. The handlePhotoUpload() method then delegates to the saveOrUpdatePhoto() method in com.fluxtream.connectors.fluxtream_capture.FluxtreamCapturePhotoStore which does the heavy validation and, if everything is valid, inserts the photo into the key-value store and the thumbnails into the database.

...