Platform Explorer / Nuxeo Platform 5.6

Operation Blob.CreateFromURL

File From URL

Description

Creates a file from a given URL. The file parameter specifies how to retrieve the file content. It should be an URL to the file you want to use as the source. You can also use an expression to get an URL from the context. Returns the created file.
Operation id Blob.CreateFromURL
AliasesBlob.Create
Category Fetch
Label File From URL
Requires
Since

Parameters

Name Description Type Required Default value
file resource yes  
encoding string no  
filename string no  
mime-type string no  

Signature

Inputs void
Outputs blob

Implementation information

Implementation class org.nuxeo.ecm.automation.core.operations.blob.CreateBlob
Contributing component org.nuxeo.ecm.core.automation.coreContrib

JSON definition

{
  "id" : "Blob.CreateFromURL",
  "aliases" : [ "Blob.Create" ],
  "label" : "File From URL",
  "category" : "Fetch",
  "requires" : null,
  "description" : "Creates a file from a given URL. The file parameter specifies how to retrieve the file content. It should be an URL to the file you want to use as the source. You can also use an expression to get an URL from the context. Returns the created file.",
  "url" : "Blob.CreateFromURL",
  "signature" : [ "void", "blob" ],
  "params" : [ {
    "name" : "file",
    "description" : "",
    "type" : "resource",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "encoding",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "filename",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "mime-type",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}