下载存储文件夹中的文件时出现问题。我没有收到错误消息。所发生的一切都是重定向到404页面。该文件存在于给定的路径中,因此我被难住了。我尝试从response()的第二个参数中删除$document,但没有成功。我该怎么办?奇怪的是,当它在本地主机上运行时,它会工作吗?
public function download(Request $request, $document)
{
$pathToFile = storage_path() . '/' . 'app/documents/client'.'/'.$document;
i
我试图在产品编辑页面中显示用户保存的图像。我将在add产品中显示用户上传的图像。我试图将图像转换为base64格式,以便在背景中显示它。
当我用
file_get_contents
在我的控制器中,它给了我这个错误。
file_get_contents(full_path_to_image): failed to open stream: No such file or directory
我的图像存储在“public/映像/上载/FILE_NAME”下。
我错过了什么诡计或者做错了什么吗?
我只是个新手,需要你的帮助。编辑:即使当我搜索时,我也没有找到404个
我已经使用了php存储:当我使用404 Not Found时,我得到了错误的<iframe src="/storage/uploaded/{{$data->doc}}">。
即使我写了<iframe src="/storage/uploaded/1628544440.docx">,我还是得到了404 Not Found。1628544440.docx是DB和uploaded文件夹中的文件名。
文件夹/storage/app/public/uploaded中的文档
在我的Chrome DevTools中,我看到了这个错误:
DevTools failed to load source map: Could not load content for http://xxx.yyy.net.local/nova-api/styles/filter.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://xxx.yyy.net.loc
我在AWS上部署了Odoo 13。但它在连接时显示以下错误:
GET https://****-erp.sit.solpass.co/web/content/497-9d3f564/web.assets_common.css net::ERR_ABORTED 404
web?debug=0:38 GET https://****-erp.sit.solpass.co/web/content/503-4926ae1/web.assets_backend.css net::ERR_ABORTED 404
web?debug=0:39 GET https://****-erp.sit.solpa
npm安装失败,出现以下错误:
⠼ Installing packages...npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404 'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404