This topic is locked

PDF Files as Images

8/2/2006 9:24:49 PM
PHPRunner General questions
pplaut author

I uploaded a PDF file and it shows up as a binary file. This really is not a problem as I don't mind having to click the file to view it. However, the file downloads as a file.bin and Adobe kind of hickups and then launches. Is there anyway to get it to be a pdf file when it downloads? Of course the Adobe Acrobat Icon would be nice for Adobe documents if that were possible <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=3110&image=1&table=forumtopics' class='bbc_emoticon' alt=':D' />>

Thanks

Peer

Alexey admin 8/3/2006

Peer,
you'll need an additional character field in your table to preserve the original file names.

I.e. add Filename VARCHAR(100) field to your table, then proceed to Formatting tab in PHPRunner.

Choose Edit as and View as - Database file for the field you use to store PDF files.

Then click on Edit format for this field and choose Filename in the dialog appeared.

pplaut author 8/4/2006

Hey Thanks,

Works like a champ. However I have an addtional question.

Even though I have removed the field from Add, Edit, View, Print, etc. The file name still shows up.
If this is not possible, is there a way to make the location consistent?

On the add and edit screens the file name field is displayed on the bottom. On the view screen it is on the top of the image icon.
Thanks

Peer

Alexey admin 8/7/2006

Peer,
I'm a bit confused with your message.
Please give me URL to your pages and clarify what and where you want to see or not.

pplaut author 8/19/2006

Peer,

I'm a bit confused with your message.
Please give me URL to your pages and clarify what and where you want to see or not.


I must have been asleep, it all seems to be OK now.

Peer