AddFileComponent

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Servizi Core > Jamio Document >

AddFileComponent

Aggiunge un nuovo componente di tipo file ad un Documento.

 

Metodo

Jamio Document/AddFileComponent

 

Input

Name

Description

Type

Optional

serverAddress

Indirizzo del server per domini esterni (o "" per il dominio corrente).

String

Y

token

Token di sessione (per la sessione corrente nel dominio corrente potrebbe essere null o vuoto).

String

Y

ownerReference

Collegamento al documento

Reference

 

component

Componente di tipo file inizializzato

Object of type File Component or custom type of File Component

 

file

Collegamento all'allegato

Reference

 

Output

Name

Description

Type

Optional

returnValue

Collegamento al componente di tipo file.

Reference

 

 

Remarks

The file name of file component is checked and if it is not a valid name it is modified according to the following criteria:

- if it is null, empty, or containing only spaces, it is set to "No_Name";

- if it contains invalid characters, these are replaced by the "_" character;

- if the name (without the extension) is a reserved name ("NUL", "PRN", "COM1", etc.), the "_" character is appended to the name;

- if the name has an extension, and this is longer than 253 characters, it is truncated to 253 characters;

- if the total length of the name (including any extension) is greater than 255 characters, the part of the name without the possible extension is truncated to a length of (255 - possible length of the extension with the point).