0

There is a directory on my website that contains some PDF files that I want to show on a page, But unfortunately I can't because:

If I entered the src="https://www.mywebsite.com/files/file.pdf", The file is downloaded instead of viewing .

and if I entered src="https://www.mywebsite.com/files/", a message appears saying that this directory is forbidden and I have to change the file permissions.

If I entered src="https://www.mywebsite.com" it shows the login page.

  • Is there is a way to make this directory available so that I can view the files ?
  • Or what should the permissions be so that I could be able to view PDF files ?
PravinS
  • 2,640
  • 3
  • 21
  • 25
Sam
  • 163
  • 4
  • 10

1 Answers1

0

** Try embed **

<embed src="https://www.tutorialspoint.com/cprogramming/cprogramming_tutorial.pdf" width="800px" height="2100px" />

Hp_issei
  • 579
  • 6
  • 18