Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

POST /core/temp-file

Upload temp file for preparing

Example URI

http://example.com/restful_api/core/temp-file/?type=blog

Parameters

ParameterTypeRequired ?Description

type

String

Yes

App alias/Module id - This is query string

id

Integer

No

Item id (etc: blog id) - This is request body

file

File

Yes

File need to upload - This is request body and default name for upload file. Each app/module maybe define param_name in getUploadParams callback, so you need to follow this to make sure the upload file name is right

Response

{
      "status": "success",
      "data": {
		"file" : 776,
		"type" : "blog",
		"field_name" : "temp_file"       
      },
      "message": "",
      "error": null
}
  • No labels