Enables scripted content fragments to upload and retrieve temporary files.
Methods
Clear
Removes all uploaded files for the given context identifier.
Velocity
$core_v2_uploadedFile.Clear($contextId)
JavaScript
core_v2_uploadedFile.Clear(contextId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contextId | String | Context Id | Required |
Returns
NothingCreateContextId
Generates a new uploading context identifier
Velocity
#set($stringResponse = $core_v2_uploadedFile.CreateContextId())
JavaScript
var stringResponse = core_v2_uploadedFile.CreateContextId();
Returns
String
Get
Returns the requested uploaded file for the given context identifier.
Velocity
#set($uploadedFileResponse = $core_v2_uploadedFile.Get($contextId, $fileName))
JavaScript
var uploadedFileResponse = core_v2_uploadedFile.Get(contextId, fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contextId | String | Context Id | Required | ||
fileName | String | File Name | Required |
Returns
GetUploadUrl
Returns the URL to which files should be uploaded. This URL is suitable for use with the glowUpload and glowMultiUpload jQuery plugins.
Velocity
#set($stringResponse = $core_v2_uploadedFile.GetUploadUrl($contextId))
JavaScript
var stringResponse = core_v2_uploadedFile.GetUploadUrl(contextId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contextId | String | Context Id | Required |
Returns
String
List
Returns all uploaded files for the given context identifier.
Velocity
#set($iListResponse = $core_v2_uploadedFile.List($contextId))
JavaScript
var iListResponse = core_v2_uploadedFile.List(contextId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contextId | String | Context Id | Required |
Returns
IList of UploadedFile