Page 1 of 1

Unable to Download photos from FTP/ Filezilla

Posted: January 2nd, 2024, 12:15 pm
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

Re: Unable to Download photos from FTP/ Filezilla

Posted: January 3rd, 2024, 2:03 pm
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