Development System

From Cloudrexx Development Wiki
Jump to: navigation, search


Server's Upload-File-Size limitation

<highlightsyntax>FWSystem::getMaxUploadFileSize()</highlightsyntax>

Returns the maximum supported file size to be uploaded through a POST interface.

Convert byte size into literal representation

<highlightsyntax>FWSystem::getLiteralSizeFormat()</highlightsyntax>

Returns the literal representation of a byte size

<highlightsyntax>// This will output "1 KB" print FWSystem::getLiteralSizeFormat(1024); </highlightsyntax>

Convert literal representation into byte size

<highlightsyntax>FWSystem::getBytesOfLiteralSizeFormat()</highlightsyntax>

Returns the byte count of a literal byte size representation

<highlightsyntax>// All of the following examples will output "1024" print FWSystem::getBytesOfLiteralSizeFormat("1 KB"); print FWSystem::getBytesOfLiteralSizeFormat("1 K"); print FWSystem::getBytesOfLiteralSizeFormat("1kb"); print FWSystem::getBytesOfLiteralSizeFormat("1k"); </highlightsyntax>