this plugin allows file previews of the following mimetypes

application/pdf
image/gif image/jpeg image/png image/svg+xml image/tiff image/
vnd.microsoft.icon
application/vnd.ms-excel
text/csv
application/xml
text/* (source-code)

Download
http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.filepreview.w2p

Screenshots
http://jaguar.biologie.hu-berlin.de/~fkrause/plugin_filepreview_csv.png
http://jaguar.biologie.hu-berlin.de/~fkrause/plugin_filepreview_xls.png
http://jaguar.biologie.hu-berlin.de/~fkrause/plugin_filepreview_sourcecode.png

Usage:
call the plugin with
http://127.0.0.1:8000/pyMantis/plugin_filepreview/index/plugin_webfolder_files.file.8ea642e39dea5073.696e746572616374696f6e732e637376.csv
it assumes the upload path to be upload/ (this could be improved)
if the file is not found it will return a 404

you will need to install some external modules to get all previews
working (mimetypes, xlrd, csv, pygments, pdfminer)

it would be nice if you could help to add some more support to other
filetypes (really nice would be OpenOffice -> pyUNO)

post cheers and improvements here
:)

Reply via email to