Chrome appending "Content-type: text/html" at the end of the downloaded xls file while...

Discussão em 'StackOverflow' iniciado por fdantas, Maio 15, 2019.

  1. fdantas

    fdantas Administrator Moderador

    Chrome appends extra content at the end of the xls file

    Tried changing the content type

    output-http-header("Content-Length":U, string(file-info:file-size)).
    output-http-header("Content-Disposition", "attachment; filename=" + "nikita.xls;").
    /*output-http-header("Content-Disposition":U, "attachment; filename=\" + url-encode(v-filename,"default") + "\" + ';').*/


    /* Default ContentType for worklog report only */
    if v-status = 'wlrpt' then
    assign v-contenttype = "application/csv":U.

    Continue reading...

Compartilhe esta Página