Hi Abu,
I tried to upload xls file in FTP when submit after record added. But its not working.
Thank you,
Please refer demos/editing/file-upload.php and see add_inivoice() callback function.
Hi Abu,
Thanks for the information. But here i need to use FTP function to upload the file to remote server. When we added one custom function and we called that function after custom event but ftp call not triggered, please find below ftp function which we used.
$ftp_server = "xxxxxx";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
$login = ftp_login($ftp_conn, "*****", "******");
$file = "****.xls";
// upload file
if (ftp_put($ftp_conn, "***/****.xls", $file, FTP_ASCII))
{
echo "Successfully uploaded $file.";
}
else
{
echo "Error uploading $file.";
}
Can you please assist us how to trigger this FTP method.
Thanks,
Anand
You can put this code in on_insert event handler and move uploaded file with your code.