Basic Uploader Properties
Overview
Section titled βOverviewβFor background information, see Basic Uploader JavaScript Settings.
Below is a list of properties that you may configure from your Basic Uploader JavaScript file.
Basic Uploader Properties
Section titled βBasic Uploader Propertiesβ- basicupload.failed.message - OPTIONAL
- basicupload.offer.savevideo - OPTIONAL
- basicupload.launch.event.url - OPTIONAL
- basicupload.panel.button.title - OPTIONAL
- basicupload.panel.input.description.label - OPTIONAL
- basicupload.panel.input.description.required - OPTIONAL
- basicupload.panel.input.description.required.message - OPTIONAL
- basicupload.panel.input.description.show - OPTIONAL
- basicupload.panel.input.title.label - OPTIONAL
- basicupload.panel.input.title.required - OPTIONAL
- basicupload.panel.input.title.required.message - OPTIONAL
- basicupload.panel.input.title.show - OPTIONAL
- basicupload.panel.message - OPTIONAL
- basicupload.panel.title - OPTIONAL
- basicupload.panel.input.choose-replace.show - OPTIONAL
- basicupload.post.extraheaders.1 - OPTIONAL
- basicupload.post.maxwidth - OPTIONAL
- basicupload.post.method - OPTIONAL
- basicupload.preview.title - OPTIONAL
- basicupload.request.url - REQUIRED
- basicupload.session.data - OPTIONAL
- basicupload.site.name - REQUIRED
- basicupload.success.message - OPTIONAL
- basicupload.success.showlink - OPTIONAL
- basicupload.success.url - OPTIONAL
- basicupload.virtualbackground.enabled - OPTIONAL
- locale - OPTIONAL
- som.*.app.content.subdirectory - REQUIRED
- som.*.app.drawandzoom.enabled - OPTIONAL
- som.*.app.editing.enabled - OPTIONAL
- som.*.app.frame.title - REQUIRED
- workflow - OPTIONAL
ββββββββββββββββββββ
basicupload.failed.message
Section titled βbasicupload.failed.messageβOPTIONAL The message displayed if the upload fails.
"basicupload.failed.message"="Upload failed. Please check your anti-virus and network connection."ββββββββββββββββββββ
basicupload.offer.savevideo
Section titled βbasicupload.offer.savevideoβOPTIONAL Displays the Save As Video File UI to allow the user to save their recording locally to a file.
"basicupload.offer.savevideo"="true"ββββββββββββββββββββ
basicupload.launch.event.url
Section titled βbasicupload.launch.event.urlβOPTIONAL This specifies a URL that is opened by ScreenPal each time it is launched. See Solution Builder Launch Event for more information.
If this property is not overridden, then its default value is used, which is shown in the example code below. You may override it with your own URL.
"basicupload.launch.event.url"="https://screenpal.com/api/v2/solution-builder/event"ββββββββββββββββββββ
basicupload.panel.button.title
Section titled βbasicupload.panel.button.titleβOPTIONAL The text for the button that starts the upload.
"basicupload.panel.button.title"="Upload"ββββββββββββββββββββ
basicupload.panel.input.description.label
Section titled βbasicupload.panel.input.description.labelβOPTIONAL The text for the input description field. Also see basicupload.panel.input.description.required and basicupload.panel.input.description.show.
"basicupload.panel.input.description.label"="<b>Description</b>"ββββββββββββββββββββ
basicupload.panel.input.description.required
Section titled βbasicupload.panel.input.description.requiredβOPTIONAL Specifies if the Description is optional or required to be input by the user before the βUploadβ button will be enabled. Also see basicupload.panel.input.description.label and basicupload.panel.input.description.show.
"basicupload.panel.input.description.required"="false"ββββββββββββββββββββ
basicupload.panel.input.description.required.message
Section titled βbasicupload.panel.input.description.required.messageβOPTIONAL The message displayed to the user to inform them that the Description field is required to be entered before the βUploadβ button will be enabled. Also see basicupload.panel.input.description.label, basicupload.panel.input.description.required, and basicupload.panel.input.description.show.
"basicupload.panel.input.description.required.message"="Please enter a description."ββββββββββββββββββββ
basicupload.panel.input.description.show
Section titled βbasicupload.panel.input.description.showβOPTIONAL Specifies if the Description field is displayed or not. Also see basicupload.panel.input.description.label and basicupload.panel.input.description.required.
"basicupload.panel.input.description.show"="true"ββββββββββββββββββββ
basicupload.panel.input.title.label
Section titled βbasicupload.panel.input.title.labelβOPTIONAL The text above the Title field. Also see basicupload.panel.input.title.required, basicupload.panel.input.title.required.message, and basicupload.panel.input.title.show
"basicupload.panel.input.title.label"="<b>Title</b>"ββββββββββββββββββββ
basicupload.panel.input.title.required
Section titled βbasicupload.panel.input.title.requiredβOPTIONAL Specifies if the Title is optional or required to be input by the user before the βuploadβ button will be enabled. Also see basicupload.panel.input.title.label, basicupload.panel.input.title.required.message, and basicupload.panel.input.title.show
"basicupload.panel.input.title.required"="true"ββββββββββββββββββββ
basicupload.panel.input.title.required.message
Section titled βbasicupload.panel.input.title.required.messageβOPTIONAL The message displayed to the user to inform them that the Title field is required to be entered before the βUploadβ button will be enabled. Also see basicupload.panel.input.title.label, basicupload.panel.input.title.required, and basicupload.panel.input.title.show.
"basicupload.panel.input.title.required.message"="Please enter a title."ββββββββββββββββββββ
basicupload.panel.input.title.show
Section titled βbasicupload.panel.input.title.showβOPTIONAL Specifies if the Title field is displayed or not. Also see basicupload.panel.input.title.label, basicupload.panel.input.title.required, and basicupload.panel.input.title.required.message.
"basicupload.panel.input.title.show"="true"ββββββββββββββββββββ
basicupload.panel.message
Section titled βbasicupload.panel.messageβOPTIONAL The text to show at the top of the Upload UI panel.
"basicupload.panel.message"="Enter values below then click Upload to start uploading."ββββββββββββββββββββ
basicupload.panel.title
Section titled βbasicupload.panel.titleβOPTIONAL The text to show as the title for the Upload UI panel.
"basicupload.panel.message"="Upload"ββββββββββββββββββββ
basicupload.panel.input.choose-replace.show
Section titled βbasicupload.panel.input.choose-replace.showβ****OPTIONAL Displays a checkbox in the upload UI that lets the user choose whether to replace an existing video or upload a new one.
Info:
This checkbox is only meaningful when combined with the basicupload.session.data property.
Behavior
Section titled βBehaviorβ- If
basicupload.panel.input.choose-replace.showis set to"true"the upload UI will show a checkbox labeled something like βReplace current uploadβ. - The checkbox has additional show/hide considerations as well.
- If the video has previously been published, then the checkbox will show on subsequent attempts to publish that project.
- If an
editvideo-urlworkflow is used on initial launch of a project, then the replace checkbox will also show on first attempt to publish. - The checkbox state is remembered across launches within the same project.
"basicupload.panel.input.choose-replace.show": "true"Example Workflow
Section titled βExample Workflowβ- You launch ScreenPal with:
"workflow": "editVideo-https://files.screencast-o-matic.com/original.mp4","basicupload.session.data": "{\"originalUrl\":\"https://files.screencast-o-matic.com/original.mp4\"}","basicupload.panel.input.choose-replace.show": "true"- On upload, the user is prompted to enter a title and description and is given the option to Replace current upload via a checkbox.
- If checked, the upload request might look like:
POST /basicuploadS3Upload.php?id=myidContent-Type: multipart/form-data
title=Updated Videodescription=Shortened version with introsession-data={"originalUrl":"https://files.screencast-o-matic.com/original.mp4"}choose-replace=trueββββββββββββββββββββ
basicupload.post.extraheaders.1
Section titled βbasicupload.post.extraheaders.1βOPTIONAL This is useful for when you want to upload to AWS S3 and need to set the access control list to allow the uploaded video to be read by anyone. Note that you may add more than one extra header by adding another entry with the number incremented, such as basicupload.post.extraheaders.2.
"basicupload.post.extraheaders.1":"x-amz-acl:public-read"ββββββββββββββββββββ
basicupload.post.maxwidth
Section titled βbasicupload.post.maxwidthβOPTIONAL To reduce the size of videos that are posted to your servers, you may specify a video pixel width limit. Videos that are smaller than that will not be altered.
"basicupload.post.maxwidth":"1280"ββββββββββββββββββββ
basicupload.post.method
Section titled βbasicupload.post.methodβOPTIONAL This is useful for when you want to upload to AWS S3 and need to set the post method to PUT.
"basicupload.post.method":"PUT"ββββββββββββββββββββ
basicupload.preview.title
Section titled βbasicupload.preview.titleβOPTIONAL The text to show for the title during video preview.
"basicupload.preview.title"="Preview"ββββββββββββββββββββ
basicupload.request.url
Section titled βbasicupload.request.urlβREQUIRED Specifies the URL to use when uploading the video.
Warning:
If you are also usingΒ basicupload.success.urlΒ (success callback property), then use a URL parameter likeΒ id=myidΒ to link this call to basicupload.success.url.
The URL used to POST the mp4 video file. If you do not use the title and description options, then a GET request is used instead.
"basicupload.request.url":"https://.../basicuploadS3Upload.php?id=myid"ββββββββββββββββββββ
basicupload.session.data
Section titled βbasicupload.session.dataβ****OPTIONAL This property allows you to pass in custom metadata (such as the URL or identifier of the original video) that gets stored in the associated Video Project and later returned as part of the video upload request. It enables functionality such as βReplace Existing Uploadβ when editing previously hosted videos.
Purpose
Section titled βPurposeβThis property supports workflows like editVideo-URL, where a user downloads and edits a previously uploaded video. Including this property ensures the backend can track and optionally replace the original video when the user re-uploads it.
The value of basicupload.session.data is included in the POST request to basicupload.request.url under the key session-data, along with other form fields such as title and description.
"basicupload.session.data": "{\"originalUrl\":\"https://files.screencast-o-matic.com/video123.mp4\"}"Persistence Across Sessions
Section titled βPersistence Across SessionsβIf the user records a video but does not immediately upload it, the session data will be saved to the Video Project. When the video is uploaded laterβeither from the Project Manager or editorβthe session-data is preserved and included in the upload request.
ββββββββββββββββββββ
basicupload.site.name
Section titled βbasicupload.site.nameβREQUIRED The text to display while a video is uploading.
"basicupload.site.name":"Example Site"ββββββββββββββββββββ
basicupload.success.message
Section titled βbasicupload.success.messageβOPTIONAL The text to display when an upload is successful.
"basicupload.success.message"="Upload Successful!"ββββββββββββββββββββ
basicupload.success.showlink
Section titled βbasicupload.success.showlinkβOPTIONAL Optionally display a URL to the user that accesses the successfully uploaded video. The URL is from the basicupload.success.url property.
"basicupload.success.showlink"="false"ββββββββββββββββββββ
basicupload.success.url
Section titled βbasicupload.success.urlβOPTIONAL The URL optionally shown for accessing a successfully uploaded video. Also see basicupload.success.showlink.
"basicupload.success.url":"https://.../basicuploadSuccess.php?id=myid"ββββββββββββββββββββ
basicupload.virtualbackground.enabledο»Ώ
Section titled βbasicupload.virtualbackground.enabledο»ΏβOPTIONAL You may choose to enable the virtual background feature to support blur and background replacement. If this property is omitted, the default state will be enabled.
- If ScreenPal is hosting your files (jars, installers, etc.) then simply use true,false, or omit the property accordingly (if you want it enabled).
- If YOU are hosting the files, and you have this set to true, or have the property omitted, then you will need to ensure you are also hosting the following files:
https://s3.amazonaws.com/files.screencast-o-matic.com/jars/som-native-cv-win64-0.1.3.ziphttps://s3.amazonaws.com/files.screencast-o-matic.com/jars/som-native-cv-osx64-0.1.3.ziphttps://s3.amazonaws.com/files.screencast-o-matic.com/jars/som-native-cv-aarch64-0.1.3.zip"basicupload.virtualbackground.enabled":"true"ββββββββββββββββββββ
OPTIONAL The locale (language) to use in the ScreenPal Application.
| Value | Language |
|---|---|
| de | German |
| en | English |
| es | Spanish |
| fr | French |
| it | Italian |
| ja | Japanese |
| pt_br | Portuguese (Brasil) |
| zh | Chinese |
"locale": "en"ββββββββββββββββββββ
som.*.app.content.subdirectory
Section titled βsom.*.app.content.subdirectoryβREQUIRED This is the subdirectory where your userβs recordings will be stored. For example,βC:\Users\[UserName]\Screen Recorder\Recordingsβ and βC:\Users\[UserName]\Screen Recorder\Screenshotsβ, if you set the value to βScreen Recorderβ.
"som.*.app.content.subdirectory":"Screen Recorder"ββββββββββββββββββββ
som.*.app.drawandzoom.enabled
Section titled βsom.*.app.drawandzoom.enabledβOPTIONAL Optionally show the Show Draw & Zoom ControlsΒ button on the ScreenPal Recorder.
"som.*.app.drawandzoom.enabled":"true"ββββββββββββββββββββ
som.*.app.editing.enabled
Section titled βsom.*.app.editing.enabledβOPTIONAL Optionally show the Edit Video button on the Upload UI panel.
"som.*.app.editing.enabled":"true"ββββββββββββββββββββ
som.*.app.frame.title
Section titled βsom.*.app.frame.titleβREQUIRED This is the title shown on the window for the application.
"som.*.app.frame.title":"Screen Recorder"ββββββββββββββββββββ
workflow
Section titled βworkflowβOPTIONAL A Workflow, also known as deep-linking, is a ScreenPal feature that allows a URL to specify how ScreenPal should open. For example, adding &workflow=openVideoManager to a ScreenPal launching URL instructs ScreenPal to start up and then run the openVideoManagerWorkflow, which tells ScreenPal to show the Library Manager with the Videos Tab selected.
For more information see Deep Linking - Workflows.