syncing-cloud

Synchronize the edition of your file (if it does not exist it will be created) directly to your server without the need for an ftp or similar user, as you do locally and without third parties.

Alessandrio

230

1

Bug Reports

1.0.2

Apache 2.0

GitHub

This package provides the following services:

syncing

Synchronize the edition of your document (if it does not exist it will be created) directly to your server without the need for an ftp or similar user, as you do locally and without third parties.

Getting Started

After installing the extension in the editor, it is important to add a file inside the server in which we will synchronize the files.

Prerequisites

PYTHON2.5+
#!/usr/bin/python
import cgi
import json
print "Content-type: text/html\n"
form = cgi.FieldStorage()
todict = json.loads(form.getvalue('file'))
try:
  with open(todict['way'], 'w') as file:
    file.write(todict['datable'])
    print("1")
except IOError as e:
    print("0")
PHP7+
  $str = file_get_contents($_FILES["file"]["tmp_name"]);
  $tojson = json_decode(rtrim($str, "\0"));
  echo (file_put_contents($tojson->way, $tojson->datable) !== false) ? 1 : 0;

Settings

settings

Run

screenshot

syncing screenshoot

Contribution

Mentions

License

This project is licensed under the Apache License - see the LICENSE file for details.

by: Alessandrio >> s1dg78hg4df85h1