Now the function only returns valid bytes to the client. This fixes #45 github issue.
Attach a file by drag & drop or click to upload