Quote:
Originally Posted by Matriosh
Hello. I've got the same problem here. It persists because server is sending "Content-length" header with the real attachment size (not the watermarked one). I've tried to modify the product's plugin to fix this, but nothing happens, becase this header is sended before the hook called.
So, I just commented the "Content-length" header string in attachment.php:
Code:
header('Content-Length: ' . (($lastbyte + 1) - $startbyte));
And now it's works, but I think author should fix this problem in his product. Thx. = )
|
I tried this but it just broke all my attachments.
Can somebody share the correct way to comment out this line?
Edit - Alibass showed me this (MUCH APPRECIATED!!)
Code:
/ header('Content-Length: ' . (($lastbyte + 1) - $startbyte));
if that doesn't work then try this
<!-- header('Content-Length: ' . (($lastbyte + 1) - $startbyte)); -->
I also tested this watermarker also -
https://vborg.vbsupport.ru/showthread.php?p=2398684
And it works great, just an XML file with one minor edit, I'm using VB 4 PL3 if anyone finds this one doesn't work.