Trigger Reference of GS2-Datastore Script

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 = {
}