Sorli’ Blog Just another WordPress site

January 1, 2023

Program Seeddms Auto File Uploader

Filed under: — admin @ 9:39 pm

1. Introduction

You can easily edit document by your default editor by clicking the link on document on Seeddms document management system web application. User download document for example Word (docx), edit it. Save and close Word application. Client Seeddms Auto File Uploader detect this change and automatically upload document on Seeddms web application and create new version of Word document.

2. Install

First you have to patch SeedDms php code on server and install client on Windows PC.

2.1 Install on server

2.1.1 Edit “class.ViewDocument.php” file

Correct path of document is here:


After this line:

$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/timeline/timeline-locales.js"></script>'."n", 'js');

Add this:

$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/sorli/sorli.js"></script>'."n", 'js'); 
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/jquery/jquery-ui.min.js"></script>'."n", 'js'); 
$this->htmlAddHeader('<link href="../styles/'.$this->theme.'/jquery/jquery-ui.css" rel="stylesheet">'."n", 'css');

And after this line:ccc

print "<li><a href="../op/op.Download.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion().""> <i class="fa fa-download"></i>".getMLText("download")."</a></li>"; 

Add this:

$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]". dirname($_SERVER['PHP_SELF']);
$actual_link = substr_replace($actual_link, '', -4);
print '<input type="hidden" id="sorliId" name="sorliId" value="' . "sorli://" . $actual_link . "/op/op.Download.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion(). '">';
print '<li><a id="opendocumentviasorli" class="opendocumentviasorli" href="" value=' . "sorli://" . $actual_link . "/op/op.Download.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion() . '"><i class="fa fa-edit"></i>'.getMLText("edit").'</a></li>';
print '<div id="dialogsorli" title="Refresh" hidden="hidden">After close document via Auto File Uploader please cilick ok to refresh page.</div>';

Create directory sorli and file sorli.js like here:


Paste code in file:

$( document ).ready(function() {
 $( "#dialogsorli" ).dialog({
    autoOpen : false, modal : true, show : "none", hide : "none",   buttons : {
        "Refresh" : function() {

window.onload = function what()
$("a.opendocumentviasorli").click(function() {"sorliId").value);
    return false;

Paste jQuery files from to seeddms directory


Files can be downloaded here: Link

2.2 Install on PC

Download new version (stable v.1.0.2) and install it. Click here to download Setup

3 How to usage it

After install pc client you can test it by clicking on the link Click here to Test plugin.

4 Source code can be found here: Link

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress