问题描述
发现昨天写的文档未保存,有几个图片弄起来比较麻烦,markdown配置了PicGo上传到了gitlab,于是准备去gitlab找一下昨天的图片,但是发现gitlab对应的仓库是空的!
markdown文档里其他图片的链接都正常,而且我试了用手机流量、电脑浏览器打开这个链接,可正常看到图片!
找的仓库肯定没问题,我有gitlab管理员账号,只能搜到这一个仓库
原因分析:
未知,望大佬指点
我直接在仓库上传了一张图片
http://gitlab.***.cn/***-public/markdown-resource/-/raw/master/%E5%A4%B4%E5%83%8F.jpg
用此链接可访问到,而picgo上传的图片路径如下,不一样
http://gitlab.***.cn/***-public/markdown-resource/uploads/fad715525307ae930882bfb2c46d248f/202211161548738.png
我将picgo上传的图片路径后面去掉,浏览器直接访问
http://gitlab.***.cn/***-public/markdown-resource/uploads/
与
http://gitlab.***.cn/***-public/markdown-resource/uploads/fad715525307ae930882bfb2c46d248f/
均会报404,无法访问
所以这些上传的图片存到了哪里?为什么仓库是空的,却能访问到?
解决方案:
最后是在picgo的日志里,找到了链接,好在是不用重新造数据截图了,但是上面的问题还是存在,不知道为啥
2022-11-16 15:48:45 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\25463\\AppData\\Roaming\\Typora\\typora-user-images\\image-20221116154844347.png"]}
2022-11-16 15:48:45 [PicGo INFO] [PicGo Server] upload files in list
2022-11-16 15:48:45 [PicGo INFO] Before transform
2022-11-16 15:48:45 [PicGo INFO] Transforming... Current transformer is [path]
2022-11-16 15:48:45 [PicGo INFO] Before upload
2022-11-16 15:48:45 [PicGo INFO] beforeUploadPlugins: renameFn running
2022-11-16 15:48:47 [PicGo INFO] Uploading... Current uploader is [gitlab]
2022-11-16 15:48:47 [PicGo SUCCESS]
http://gitlab.***.cn/***-public/markdown-resource/uploads/fad715525307ae930882bfb2c46d248f/202211161548738.png
2022-11-16 15:50:27 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\25463\\AppData\\Roaming\\Typora\\typora-user-images\\image-20221116155025949.png"]}
2022-11-16 15:50:27 [PicGo INFO] [PicGo Server] upload files in list
2022-11-16 15:50:27 [PicGo INFO] Before transform
2022-11-16 15:50:27 [PicGo INFO] Transforming... Current transformer is [path]
2022-11-16 15:50:27 [PicGo INFO] Before upload
2022-11-16 15:50:27 [PicGo INFO] beforeUploadPlugins: renameFn running
2022-11-16 15:50:28 [PicGo INFO] Uploading... Current uploader is [gitlab]
2022-11-16 15:50:28 [PicGo SUCCESS]
http://gitlab.***.cn/***-public/markdown-resource/uploads/d8639952349151eee95cef040c76047e/202211161550099.png
2022-11-16 15:52:52 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\25463\\AppData\\Roaming\\Typora\\typora-user-images\\image-20221116155251226.png"]}
2022-11-16 15:52:52 [PicGo INFO] [PicGo Server] upload files in list
2022-11-16 15:52:52 [PicGo INFO] Before transform
2022-11-16 15:52:52 [PicGo INFO] Transforming... Current transformer is [path]
2022-11-16 15:52:52 [PicGo INFO] Before upload
2022-11-16 15:52:52 [PicGo INFO] beforeUploadPlugins: renameFn running
2022-11-16 15:52:53 [PicGo INFO] Uploading... Current uploader is [gitlab]
2022-11-16 15:52:53 [PicGo SUCCESS]
http://gitlab.***.cn/***-public/markdown-resource/uploads/dcf4a27590e18ac7e5df446a093ef067/202211161552248.png
2022-11-16 15:53:23 [PicGo INFO] [PicGo Server] get the request {"list":["C:\\Users\\25463\\AppData\\Roaming\\Typora\\typora-user-images\\image-20221116155322731.png"]}
2022-11-16 15:53:23 [PicGo INFO] [PicGo Server] upload files in list
2022-11-16 15:53:23 [PicGo INFO] Before transform
2022-11-16 15:53:23 [PicGo INFO] Transforming... Current transformer is [path]
2022-11-16 15:53:23 [PicGo INFO] Before upload
2022-11-16 15:53:23 [PicGo INFO] beforeUploadPlugins: renameFn running
2022-11-16 15:53:24 [PicGo INFO] Uploading... Current uploader is [gitlab]
2022-11-16 15:53:24 [PicGo SUCCESS]
http://gitlab.***.cn/***-public/markdown-resource/uploads/93740ccd1104aa89930678459d91655c/202211161553769.png
必须贴代码,不贴代码,就是质量差,影响推荐,CSDN真NC