简体   繁体   English

如何将laravel中本地public/uploads文件夹中的pdf文件显示为html<iframe>

[英]How can I display pdf file from local public/uploads folder in laravel into html <iframe>

code below:代码如下:

 <iframe id="ifrm" src="/public/uploads/sample.pdf" />

iframe prompt 404|Not Found, does path/src is wrong path? iframe 提示 404|Not Found,path/src 是不是错误的路径?

你错误的PATH使用这个:

 ./uploads/sample.pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何显示非公共网站文件夹中的 .pdf 文件? - How can I display a .pdf file from a non-public website folder? 从公共文件夹中获取()本地 json 文件返回 HTML 文件 - Fetch() a local json file from public folder return an HTML file 如何以html显示pdf <iframe> ? - How to display pdf in html by <iframe>? 如何将资产文件夹中的图像添加到本地 HTML 文件并在 Flutter Z3E7D16622A52391BD7BF68CAE 中显示 HTML 文件 - How to add an image from assets folder to local HTML file and display the HTML file in Flutter WebView 如何在 Shiny UI 中动态显示本地 html 文件? - How can I display a local html file in Shiny UI dynamically? 如何从symfony的公共文件夹下载pdf文件 - how to download pdf file from public folder in symfony 如何通过多个文件上传从 php 获取 html 表单名称? - How can I get the html form name from php with multiple file uploads? 我无法从我的 Firebase 函数加载公共文件夹中的 html 文件 - I can't load a html file in public folder from my Firebase function 浏览按钮,将在 html 中显示本地目录文件夹中的图像文件 - Browse button that will display image file from a local directory folder in html 如何允许从表单中独立上传文件? - How can I allow independent file uploads from within a form?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM