Trigger Reference of GS2-Datastore Script

Reference for event triggers that call extended scripts, as defined in GS2-Datastore

doneUpload

Event trigger to call GS2-Script before reporting upload completion.

Request

TypeDescription
namespaceNamespaceNamespace
dataObjectDataObjectData object
objectUrlstringURL of the uploaded object

Result

TypeRequireDefaultLimitationDescription
permitboolAllow upload completion report

Implementation Example

namespace = args.namespace
dataObject = args.dataObject
objectUrl = args.objectUrl

result = {
  permit=permit
}

doneUploadDone

GS2-Script called after reporting upload completion.

Request

TypeDescription
namespaceNamespaceNamespace
dataObjectDataObjectData object

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
dataObject = args.dataObject

result = {
}