Hello <br>I've got this issue:<br>in the systemfilesdownload .kl1 file when the actual buffering is done<br><br> size_t q_rb;<br> char the_buf[1024];<br> target = fopen("/tmp/file.dat", "rb");<br> if(target == NULL){<br>
fr_setError(session, "Error downloading file. Download aborted!.Please try again.");<br> break;<br> }<br> while ((q_rb = fread(the_buf, 1, sizeof the_buf, target)) > 0)<br> (void) io_write(out, the_buf, q_rb);<br>
<br> fr_setMessage(session, "Transfer executed successfully. File downloaded!.");<br> response_redirect(response, "systemfiles.kl1"); // ***<br> <br><br>***: here the I would like to redirect to systemfiles.kl1 but it doesn't <br>
if I manually refresh the page the "Transfer executed succ..." message is shown<br> I need to redirect from the download page to show this message<br> automatically (and othe stuff, like reenable some buttons) when the download<br>
is complete. <br> the download is executed fine , it's just the redirect.<br> the io_write function changes the response values I think.<br>Has anyone had a problem similar to this?<br>Thanks in advanced.<br><br>
Moisés<br> <br><br><br clear="all"><br>-- <br>Moisés AAC<br>