• Dear fileaway users,
    I’m trying to use fileaway to make some kind of platform for sharing files with some friends. In a restricted page (accessible only to users of a defined Group – Groups plugin). I wanted to encrypt the links (with the encryption attribute) but the files are corrupted when I download them. I produced a checksum with the cksum tool and the files on the server are the files I expect but when I download them, they are modified (different checksum) but have exactly the same size.

    Here is the shortcode I use to download the files. Am I missing something ?
    [fileaway type=”table” sub=”testGrp” code=”yes” encryption=”on”]

    I also noticed that the file is properly downloaded if I remove the encryption attribute but as far as I understood, the encryption should only encrypt the links. Am I wrong ?

    Kindly,

    Lionel Wilhelm

    P.S. By the way : thanks a lot, it is an awesome plugin !!

    File Away Version: 3.9.6.1
    PHP : 7.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author thomstark

    (@thomstark)

    With non-encrypted links, the client (browser) requests the download from the server. With encrypted links, the server pushes the download to the browser. It does this by echoing the file contents into a filename (in essence, reading and then rebuilding the file).

    Likely the issue is something on your server is echoing some content while the file is being pushed to the client. Perhaps error reporting. That content gets mixed up with the file and corrupts it.

    Thread Starter lwilhelm

    (@lwilhelm)

    Hi Thom,

    Thanks a lot for the quick answer 🙂 I will dig into the server log in order to understand what happened. I will post a fix here if I find something relevant (not too config dependant).

    Lionel

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘fileaway encrypt attribute’ is closed to new replies.