Configure the Basic Uploader
Use the following information as a guide to configure how the basic uploader uploads a finished video file. Also see Setting Basic Uploader Properties for other properties you can set to customize the user interface.
The Basic Uploader provides a standard user interface and publishing option using a PUSH or PUT request to upload the video to your backend.
After the user completes a recording they will see an optional form to enter a title and/or description for their recording and an "Upload" button to start the upload.
When the user clicks the "Upload" button the app will make a request to your backend to the URL provided in the basicupload.request.url property using a POST request to send any title/description, or if not collecting title/description, a GET request is made:
The response from the MyUrlProvider script must be a single line of text with a URL where the actual mp4 video should be a POST (or PUT). For example, if you were using the S3 Amazon Example below then the response returns a pre-signed Amazon S3 URL where we have permissions to post:
Once the app has this final URL, it will make a POST (or PUT) request with the body of the request being the mp4 file. The body is not encoded (like form data from a browser), but a raw mp4 file.
Take a look at the full list of Basic Uploader Properties to see how to customize branding and message strings in the screen recorder and video editor.
Here's an example PHP script that you can use to sign a URL and upload directly to Amazon S3. To use this script you'd set the following properties when launching:
In this case we also need an extra property to set an additional header which is sent to Amazon S3 with the PUT request to mark that this mp4 is publicly readable.
Here's an example basicuploadS3Upload.php which creates a signed URL that we can use to PUT the mp4 file on Amazon S3:
The following example uses PHP to read the raw input stream of the POST request and writes to a local file.
To use this script you'd set the following properties when launching:
The basicuploadSaveUpload.php script below reads the mp4 file from the request input stream and saves to a local file in /tmp, but it can be placed anywhere on the server that you have write permission:
After the upload a message is displayed to the user. To provide a custom message to your users, change the upload success message by setting this property:
By default the recorder will remove the local recording from the computer after a successful upload. If you'd like the user to manage their own recordings using the recordings manager then you can disable this feature by setting this property:
After a successful upload the app can open a URL by setting this property:
You can also return a URL as the text result of the PUT / POST upload in which case you can set the value to gotoplayback which will open that URL.
When setting this property the app will show a "Continue" button to the user after a successful upload and then open this URL when they click the "Continue" button.
To launch the local recordings manager without first doing a screencast, change the behavior of the launcher to open a window showing local recordings on the computer. Do this by adding the property showManager: true to the launch properties. For example: