fileRes

File resource stored on the server or in the database

Methods

FilePublishing Publishes the public resources on the frontal servers.
GetPublicFileResURL Gets the URL of the folder
GetServerFileName Returns the name of the file on the server after copying it, if necessary, in the upload folder.
GetURL Gets the URL of the file
PostUpload Post upload processing depending on defined storage type.
PreDownload Prepare download of resource depending on the defined storage type.
PublishIfNeeded Copies the file on the media servers if necessary
PublishIfNeededFromId Copies the file on the media servers if necessary using the resource ID
WebPostUpload Finalize the storage of the resource after the upload (from a web page) to the server depending on the storage type used. Recovers the codepage and the content type.

Generic Methods

create Creates a new entity corresponding to a given schema.
load Loads and returns an entity corresponding to a given schema and key.
save Saves an entity in the database.