1. Douyin Open Platform, uploading a video to the file server, file size: 2.10 GB. Response: 413 Request Entity Too Large. See Figure 1.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>413 Request Entity Too Large</title>
</head>
<body bgcolor="white">
<h1>413 Request Entity Too Large</h1>
<P>The requested resource does not allow request data with the requested method or the amount of data provided in
the request exceeds the capacity limit.
<hr />Powered by Tengine
</body>
</html>2. Reviewing the documentation, Douyin Open Platform – Open API – Video Management – Douyin – Create Video – Upload Video: https://open.douyin.com/platform/doc/6848798087398295555 . Video file requirements: The video file size must not exceed 128M, and the duration must be within 15 minutes.
3. Douyin Open Platform, uploading a video to the file server, file size: 136 MB. Response: 502 Bad Gateway. See Figure 2.

4. Douyin Open Platform, uploading a video to the file server, file size: 117 MB. Response: 200. Upload successful. Time elapsed: 1 m 7.02 s. See Figure 3.

5. Note from the official documentation: For videos larger than 50M, chunked upload is recommended to reduce failures caused by gateway timeouts. For videos larger than 128M, chunked upload is required. The total video size must be within 4GB. The recommended size for a single chunk is 20MB, with a minimum of 5MB. The subsequent implementation logic for uploading videos: Regardless of size, all videos will be uploaded in chunks, with a single chunk size of 100 MB.
