SOAP API method ProfileDir_createFile

Back to API references

Description
Create a new file in the directory.

Parameters
Parameter 'id' : int
Unique identifier (id) of the object ProfileDir. The method only applies to the profiledir with this id.
Parameter 'filedata' : Structure of type 'filedata'
File object
Parameter 'author' : string
Name of the author
Parameter 'metadata' : Collection of type 'metadata'
Additional data to be stored with the file
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'profilefile' : Structure of type 'profilefile'

Structure 'filedata'
This structure filedata was mentioned above. This structure has the following properties:
Property 'name' : string
The name of the data of the file.
Property 'mimetype' : string
The mimetype of the data of the file.
Property 'data' : binary
The data of the file. The data is base64 encoded.

Structure 'pair'
This structure pair was mentioned above. This structure has the following properties:
Property 'key' : string
Property 'value' : string

Structure 'metadata'
This structure metadata was mentioned above. This structure has the following properties:
Property 'pair' : Structure of type 'pair'

Structure 'login'
This structure login was mentioned above. This structure has the following properties:
Property 'username' : string
The username of the login attempt
Property 'account' : string
The account name of the login attempt
Property 'password' : string
The password for the login attempt

Structure 'profilefile'
This structure profilefile was mentioned above. This structure has the following properties:
Property 'author' : string
The name of the person who uploaded the file.
Property 'created' : timestamp
The timestamp when the file was uploaded for the first time.
Property 'modified' : timestamp
The timestamp when the file was last modified.
Property 'id' : int
The ID of the file.
Property 'mimetype' : string
The mimetype of the file.
Property 'hashcode' : string
Expose the file hashcode
Property 'data' : binary
The data of the file. The data is base64 encoded.
Property 'name' : string
The filename of the file.
Property 'size' : int
The size of the file.