Opens a window that let's you select a file you wish to upload. (white-label)
Space.Photos.OpenUploadFileBrowser()
--this script will open a file upload browser when clickedthisObject = Space.Host.ExecutingObjectfunctionOnClickFunction()Space.Photos.OpenUploadFileBrowser()endthisObject.AddClickable()thisObject.Clickable.Tooltip ="Click me to upload photo"thisObject.Clickable.OnClick(OnClickFunction)
OnUploadEnd
void OnUploadEnd (Closure c)
Binds the function c to be called when an upload operation ends.
Parameter
Type
Description
functionc()--endSpace.Photos.OnUploadEnd(c)
--this script will show a text on screen that says "Uploading..." when a photo upload is initiated--and will hide it when the upload has endedthisObject = Space.Host.ExecutingObjecttextObject = Space.Host.GetReference("textObject") --add a UIText object to References in Scripting RuntimetextObject.UIText.Text ="Uploading..."functionOnUploadStartFunction()textObject.Active =trueendfunctionOnUploadEndFunction()textObject.Active =falseendSpace.Photos.OnUploadStart(OnUploadStartFunction)Space.Photos.OnUploadEnd(OnUploadEndFunction)
OnUploadStart
void OnUploadStart (Closure c)
Function Description
Parameter
Type
Description
functionc()--endSpace.Photos.OnUploadStart(c)
--this script will show a text on screen that says "Uploading..." when a photo upload is initiated--and will hide it when the upload has endedthisObject = Space.Host.ExecutingObjecttextObject = Space.Host.GetReference("textObject") --add a UIText object to References in Scripting RuntimetextObject.UIText.Text ="Uploading..."functionOnUploadStartFunction()textObject.Active =trueendfunctionOnUploadEndFunction()textObject.Active =falseendSpace.Photos.OnUploadStart(OnUploadStartFunction)Space.Photos.OnUploadEnd(OnUploadEndFunction)