Changing fax_view.php

jnewlin71 wrote on Thursday, March 13, 2014:

I have made some changes to the fax_view.php file to allow viewing .JPG and .PNG files as well as give an error message if someone tries to pull up an .VBS, .BAT .EXE or .DLL file. (On my test server I created a symbolic link from my images folder to /mnt/scan_docs and noticed .EXE and .DLL files. In the real world this might not ever be needed?). Is this something that would benefit the community? Thoughts? Not sure how to proceed.

fsgl wrote on Thursday, March 13, 2014:

Image files & error messages are good. How about .pdf files? Most of our faxed documents are text rather than pictures.

tmccormi wrote on Thursday, March 13, 2014:

I also have some changes to that to use mime type rather than extension of the file to determine what to do with it. The current assumes TIFF and trys to convert them for viewing, etc which is not always appropriate. Most e-fax systems now deliver PDF and dropping them in the queue is useful for dispatch.

The changes I have (at this time) bypass any attempts at conversion and “selection of pages” which is why I have not shared it as yet.

Some merging of those functions would be a good thing.

–Tony

jnewlin71 wrote on Thursday, March 13, 2014:

It handles .pdf files already fsgl. I noticed that too Tony, assumes tiff2pdf and ps2pdf which should be available but not always