API
Version 7.x > API > Get Uploaded files and redirect View modes: 
User avatar
Member
Member
robnjoro - 1/16/2014 3:09:05 AM
   
Get Uploaded files and redirect
I want to customize a Document viewer for uploaded files. I was of the idea that when I click a file on the document library instead of downloading it displays the file of a preview page.
However, I was looking at GetFile.aspx file to modify it to redirect the file to the preview page. At what stage of the code should I do this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/16/2014 6:53:27 AM
   
RE:Get Uploaded files and redirect
I'd suggest not modifying that page. You can simply modify your transformation that is displaying your documents to have the target="_blank" in the < a > tag to open in a new window.

User avatar
Member
Member
robnjoro - 1/17/2014 6:33:19 AM
   
RE:Get Uploaded files and redirect
Thanks FroggyEye