Page 1 of 1

view document in browser instead of direct downloading

Posted: Tue Apr 18, 2017 11:28 pm
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?


Re: view document in browser instead of direct downloading

Posted: Wed Apr 19, 2017 6:55 pm
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.


Re: view document in browser instead of direct downloading

Posted: Thu Apr 20, 2017 12:00 am
by Usman Khan

Thanks, that worked!