# 了解并提高 Droppy 中的上传速度

如果您发现 Droppy 的上传速度未达预期，以下因素可能影响传输效率，请逐一排查优化：

***

#### **上传速度优化指南**

**1. 网络连接质量**

上传速度主要取决于**用户端与服务器端**的网络质量：

* 用户侧：建议上传方测试本地网络带宽（可通过 [Speedtest](https://www.speedtest.net/) 等工具）
* 服务器侧：检查服务器带宽配置，确保无其他进程占用大量资源

**2. 存储介质类型（HDD 与 SSD）**

* **问题定位**：检查上传目录 `uploads/temp/` 所在的存储设备
  * 机械硬盘（HDD）的写入速度可能成为瓶颈
  * 固态硬盘（SSD）可显著提升文件写入效率
* **解决方案**：
  * 迁移存储目录至 SSD
  * 云服务器用户可升级磁盘类型

**3. 文件分块上传设置**

Droppy 默认将文件分割为 **1MB** 的小块上传（如 250MB 文件 = 250个分块），您可调整分块大小以优化性能：

* **推荐配置**：
  * 高速网络环境：增大分块至 **10MB\~50MB**
  * 不稳定网络：保持较小分块（1MB\~5MB）提升容错性
* **注意事项**：
  * 需同步调整服务器 PHP 配置：

    ```php
    upload_max_filesize = 50M  // 必须大于分块大小
    post_max_size = 50M        // 建议为分块大小的2倍
    ```
  * 修改路径：管理员面板 → **上传设置** → 调整「最大分块大小」

***

#### **操作建议**

1. 优先排查用户与服务器的**实时网络状态**
2. 对高频上传场景，**务必使用SSD存储**
3. 分块大小需根据实际网络条件**动态调整**

通过以上优化，可显著提升大文件传输成功率与速度。如问题持续，建议联系服务器提供商核查硬件限制。

（注：所有配置修改后需重启 Web 服务生效）


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://droppy-docs.futa.cc/help/liao-jie-bing-ti-gao-droppy-zhong-de-shang-chuan-su-du.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
