Hello, i finally got create my local plugin to send a file PDF and put a link in navigation menu... However, when i access the link,
the file is being downloaded.
localhost/moodle/pluginfile.php/1/local_myplugin/attachment/0/file1.pdf
I tryed pass the param forcedownload=0, but not work.
I'm put the link in a <iframe src="http://localhost/moodle/pluginfile.php/1/local_myplugin/attachment/0/file1.pdf"/>
But when i access, the file is downloaded.
Any help is welcome.
Thanks!