Bring your own Backend
Captura allows you to send the files to a remote server if you don't want to store it locally.
The Request
Captura will create a POST request with Content-Type set to image/gif or
video/mp4 depending on the user settings. The HTTP Body will be the contents
of the file.
The Response
Captura expects back a JSON response containing an object with a url field
containing a string on where we can find the uploaded object. A successful
response MUST return a code 201 for it to be recognized by Captura.
What about authentication or authorization?
If you need any type of keys or user identifiers, make sure they're included as part of the URL.
Additional Features
When using your own backend, you get some additional features.
- The URL will be automatically copied to the clipboard so you can easily share it.
- You have the option to delete the local files on successful upload.
- Recent recordings will appear in the menu bar, and will sync via iCloud across your devices.
Example Implementation
We've created an example backend that you can deploy to AWS with pulumi. Check out the example repository.