没有不值得去解决的问题,也没有不值得去学习的技术!

Troubleshooting HTTP 404 Errors When Accessing Files Uploaded via FlashFXP

Logged into the CentOS server via PuTTY and navigated to the directory: /wp-content/uploads/2021/07/. Found that the filename of 秦时明月第一集荧惑守心.mp4 was garbled.

1. Uploaded the file 秦时明月第一集荧惑守心.mp4 via FlashFXP to: /wp-content/uploads/2021/07/秦时明月第一集荧惑守心.mp4. See Figure 1.

Uploaded the file 秦时明月第一集荧惑守心.mp4 via FlashFXP to: /wp-content/uploads/2021/07/秦时明月第一集荧惑守心.mp4
Figure 1

2. Accessing https://media.shuijingwanwq.com/2021/07/秦时明月第一集荧惑守心.mp4 via HTTP returned a 404 response. See Figure 2.

Accessing https://media.shuijingwanwq.com/2021/07/秦时明月第一集荧惑守心.mp4 via HTTP returned a 404 response.
Figure 2

3. Logged into the CentOS server via PuTTY and navigated to the directory: /wp-content/uploads/2021/07/. Found that the filename of 秦时明月第一集荧惑守心.mp4 was garbled. See Figure 3.

Logged into the CentOS server via PuTTY and navigated to the directory: /wp-content/uploads/2021/07/. Found that the filename of 秦时明月第一集荧惑守心.mp4 was garbled.
Figure 3

4. Selected “Sites” – clicked “Site Manager” in the drop-down menu, then selected the site (www.shuijingwanwq.com in this case), clicked “Options” in the right toolbar, navigated to the [Character Encoding] section, set it to UTF-8, and reconnected. See Figure 4.

Selected "Sites" – clicked "Site Manager" in the drop-down menu, then selected the site (www.shuijingwanwq.com in this case), clicked "Options" in the right toolbar, navigated to the [Character Encoding] section, set it to UTF-8, and reconnected.
Figure 4

5. Re-uploaded 秦时明月第一集荧惑守心.mp4 to: /wp-content/uploads/2021/07/秦时明月第一集荧惑守心.mp4. There were 2 files with the same name in the directory: /wp-content/uploads/2021/07/. See Figure 5.

Re-uploaded 秦时明月第一集荧惑守心.mp4 to: /wp-content/uploads/2021/07/秦时明月第一集荧惑守心.mp4. There were 2 files with the same name in the directory: /wp-content/uploads/2021/07/.
Figure 5

6. Logged into the server and navigated to the directory: /wp-content/uploads/2021/07/. Deleted the file with the garbled filename. See Figure 6.

Logged into the server and navigated to the directory: /wp-content/uploads/2021/07/. Deleted the file with the garbled filename.
Figure 6
Plaintext
[root@iZ23wv7v5ggZ 07]# ls

2-4-768x538.png   4-3-720x340.png        ??ʱ???µ?һ??ӫ??????.mp4
2-4-80x80.png     4-3-768x435.png        兔子、牛、还有一只什么哟?认不出来了.mp4
2-4-895x450.png   4-3-80x80.png          发现小区居民楼旁边的主干道都在铺装降噪路面,效果还是挺明显的.mp4
2-4-895x500.png   4-3-980x450.png        发现小区居民楼旁边的主干道都在铺装降噪路面,效果还是挺明显的.webm
2-4.png           4-3.png                数一下,有几只红色的,有几只黄色的呢??.mp4
2-5-1024x515.png  4-4-149x300.png        秦时明月第一集荧惑守心.mp4
2-5-1035x500.png  4-4-150x150.png        精装海景房,您下楼就是这样的景色.mp4
2-5-150x150.png   4-4-320x320.png        龙泉的某个地方打疫苗,人还是这么多了.mp4
[root@iZ23wv7v5ggZ 07]# rm -rf ??ʱ???µ?һ??ӫ??????.mp4
[root@iZ23wv7v5ggZ 07]# ls
2-4-768x538.png   4-3-720x340.png        兔子、牛、还有一只什么哟?认不出来了.mp4
2-4-80x80.png     4-3-768x435.png        发现小区居民楼旁边的主干道都在铺装降噪路面,效果还是挺明显的.mp4
2-4-895x450.png   4-3-80x80.png          发现小区居民楼旁边的主干道都在铺装降噪路面,效果还是挺明显的.webm
2-4-895x500.png   4-3-980x450.png        数一下,有几只红色的,有几只黄色的呢??.mp4
2-4.png           4-3.png                秦时明月第一集荧惑守心.mp4
2-5-1024x515.png  4-4-149x300.png        精装海景房,您下楼就是这样的景色.mp4
2-5-1035x500.png  4-4-150x150.png        龙泉的某个地方打疫苗,人还是这么多了.mp4
2-5-150x150.png   4-4-320x320.png
[root@iZ23wv7v5ggZ 07]#


7. Accessing https://media.shuijingwanwq.com/2021/07/秦时明月第一集荧惑守心.mp4 via HTTP returned a 200 response. See Figure 7.

Accessing https://media.shuijingwanwq.com/2021/07/秦时明月第一集荧惑守心.mp4 via HTTP returned a 200 response
Figure 7

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系