The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
Zotlabs\Module\Getfile Class Reference
Inheritance diagram for Zotlabs\Module\Getfile:
[legend]

Public Member Functions

 post ()
 
- Public Member Functions inherited from Zotlabs\Web\Controller
 init ()
 
 post ()
 
 get ()
 

Detailed Description

module: getfile

used for synchronising files and photos across clones

The site initiating the file operation will send a sync packet to known clones. They will respond by building the DB structures they require, then will provide a post request to this site to grab the file data. This is sent as a stream direct to disk at the other end, avoiding memory issues.

Since magic-auth cannot easily be used by the CURL process at the other end, we will require a signed request which includes a timestamp. This should not be used without SSL and is potentially vulnerable to replay if an attacker decrypts the SSL traffic fast enough. The amount of time slop is configurable but defaults to 3 minutes.

Member Function Documentation

Zotlabs\Module\Getfile::post ( )

The documentation for this class was generated from the following file: