Unable to Download photos from FTP/ Filezilla

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
prabhustat
Posts: 72
Joined: March 17th, 2012, 10:46 am

Unable to Download photos from FTP/ Filezilla

Post by prabhustat »

Hi Team

I utilize an FTP account to upload my survey data, and the process is functioning well for uploading photos. However, I'm facing an issue where the photo files are not appearing in the FTP/Filezilla folder; only the data files are visible. Kindly advise on the procedure for downloading the photo files. The command used to upload for the menu is provided below.

function syncWithHeadquarters1();
// Connect to server
// Change the URL to match your server
if syncconnect(FTP, "ftp://ftp.iota.com") = 1 then

syncfile(PUT, "../Entry/Household/*.jpg","/photos/");
syncdisconnect();
errmsg("Photos uploaded successfully to server");

endif;
end;

Thanks in advance,

Prabhu
justinlakier
Posts: 152
Joined: November 21st, 2022, 4:41 pm

Re: Unable to Download photos from FTP/ Filezilla

Post by justinlakier »

Hi Prabhu,

The code you posted works in my testing, but I'm using a different FTP url and image path. Make sure that these paths are pointing to the correct locations in your example. If the code is correct and the FTP/Image locations are correct, then you have an issue with your server. Check CSPro's sync.log file and your sync server's logs to see if your file transfers have errors. You may have to change your FileZilla settings depending on what you find, such as making sure the image is being transferred as binary instead of ASCII.

Hope this helps,
Justin
Post Reply