I tried to upload xls file in FTP when submit after record added. But its not working.
Please refer demos/editing/file-upload.php and see add_inivoice() callback function.
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.";
echo "Error uploading $file.";
Can you please assist us how to trigger this FTP method.
You can put this code in on_insert event handler and move uploaded file with your code.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?