view document in browser instead of direct downloading

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Usman Khan
User
Posts: 7

view document in browser instead of direct downloading

Post by Usman Khan »

I was using Asp.net maker 8 and documents like pdf and jpg were opening in browers on click
now I have upgraded project with Asp.net maker 16, and href link becomes
like ewfile?t=N6j8Ni-------------_______----------------------------2Fqg8_2E in list view ,
and rootAddress/ewupload?id=x_Attachment&table=<ProfileName>&x_Attachment=<Attachment Name>.pdf&download=1
in edit view
these links cause documents to be directly downloaded instead of opening in browsers
Please help about how can I get old functionality back, i.e. open files in browsers instead of downloading?


motfs
User
Posts: 258

Post by motfs »

Try to uncheck the option "Encrypt file path" (click Tools -> Advanced Settings -> Encrypt file path) to show the actual URL. If it is an image file, it should work. Try to use .jpeg file instead of .jpg file to confirm.

What kind of browser you use? There is possibility that browser does not have viewer to view PDF file. Also, for pdf file, check if the content type of the file detected is application/pdf.


Usman Khan
User
Posts: 7

Post by Usman Khan »

Thanks, that worked!


Post Reply