Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Local filesystem
  2. Amazon Simple Storage System (S3)
  3. Digital Ocean Space
  4. FTP storage file system via FTP connect
  5. SFTP server via SSH connect
  6. S3 Compatible storage system (see https://help.servmask.com/knowledgebase/list-of-s3-compatible-storage-providers/List of S3-compatible storage providers )

Below are some sample codes to manipulate files with storage systems on phpFox site:

...

Code Block
languagephp
themeRDark
borderStylesolid
linenumberstrue
collapsetrue
<?php

// Get storage object associate with storageId = 1.
$storage = Phpfox::getLib('storage')->getStorage(1);

// Get default storage
$storage = Phpfox::getLib('storage')->getStorage();

// Get default storage Id
$defaultStorageId = Phpfox::getLib('storage')->getStorageId();

...