Seeing sync files in the csweb

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
AriSilva
Posts: 312
Joined: July 22nd, 2016, 3:55 pm

Seeing sync files in the csweb

Post by AriSilva » February 9th, 2020, 9:27 am

I´ve done some tests on uploading files to the server, like:
sourceDir = "*.jpg";
outputDir = "/Bruma/";
if syncconnect(CSWeb, servidor) then
if syncfile(PUT, sourceDir, outputDir) then
errmsg("funcionou subir");
else
errmsg("falhou subir");
endif;
syncdisconnect();
endif;

And I know that it worked because I could dowonload them:
from_Path = "/Bruma/*.jpg";
to_Path = "./saida/";
if syncconnect(CSWeb, servidor) then
if syncfile(GET, from_Path, to_Path) then
errmsg("funcionou baixar");
else
errmsg("falhou baixar");
endif;
syncdisconnect();
endif;

The problem is: How could I know which files were uploaded into the server? When I go to my server using the /ui/dashboard they are not shown there, it shows just the dictionary data, not the individual files.
Best
Ari

josh
Posts: 2034
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Seeing sync files in the csweb

Post by josh » February 10th, 2020, 7:52 am

They are not displayed in the web interface. Look in the csweb/files directory of your server. You will find them there.

AriSilva
Posts: 312
Joined: July 22nd, 2016, 3:55 pm

Re: Seeing sync files in the csweb

Post by AriSilva » February 11th, 2020, 6:28 am

In this case, don´t you think it should be a matter for "new features", having a tab in the dashboard to show those files?
Best
Ari

aaronw
Posts: 245
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Seeing sync files in the csweb

Post by aaronw » February 11th, 2020, 9:54 am

I think this is the first time we have gotten this request. However, this does sound useful.

AriSilva
Posts: 312
Joined: July 22nd, 2016, 3:55 pm

Re: Seeing sync files in the csweb

Post by AriSilva » February 13th, 2020, 6:22 pm

I tried to see my uploaded files in CSWEB\files, as you said, but they are not there.
The only file which is there is a .gitignore file dated 2016.
Plz see the attached file.
I am sure that I uploaded two jpg files because after doing that, as I explained in the first entry of this issue, I´ve done a get from the same site and directed the files to another folder, and it worked.
So, I really do not know what is happening.
Attachments
csweb_files.JPG
csweb_files.JPG (71.64 KiB) Viewed 91 times
Best
Ari

AriSilva
Posts: 312
Joined: July 22nd, 2016, 3:55 pm

Re: Seeing sync files in the csweb

Post by AriSilva » February 17th, 2020, 6:39 am

Finally I´ve found out where the files go in the server:
They are not in csweb/files. At least in my case they go to INANI/files, where INANI comes from the upload path,
http://server/INANI/api/
Thanks
Best
Ari

Post Reply