Hello all.
I'm used to embed pdf files like that:
View:
type="application/pdf"
width="100%"
height="100%">
Pdf file are uploaded by sftp.
It works well.
Now for another application files are uploaded in a table.
Model:
db.define_table('memos',
Field('code', type='string', requires=IS_NOT_EMPTY()),
Field('memo_file', 'upload'),
auth.signature)
View:
<object data="{{=URL('download', args=grid_memos.view_form.record.memo_file, host=True, scheme=True)}}#toolbar=1&navpanes=0&scrollbar=1&page=1&view=FitH"
type="application/pdf"
width="100%"
height="100%">
Pdf file is not displayed. I've tried with relative or absolute (host=True, scheme=True) path without success.
Here is the result in the html page:
Replacing in this new application {{=URL('download',... by a sftp downloaded file path from my other application
http://www.domain1.com/pdf/file.pdf pdf file is displayed. And it's the same pdf file.
Someone knows why?
Thanks, regards.