fix: scale folder upload timeout by file size (fixes #249)
The folder upload path (uploadFolderEntries) used a flat 10s fetch timeout for all files regardless of size. Large files like .CR2 RAW images (~25MB) on slower networks (e.g. Raspberry Pi) exceeded this timeout, causing the AbortController to kill the request before the server received the full body — hence no server logs and 'unknown error' on the frontend. Changed to size-scaled timeout: 30s base + 2s per MB (min 10s). A 25MB CR2 now gets ~80s instead of 10s.
This commit is contained in:
@@ -16,10 +16,7 @@
|
||||
[](https://github.com/diocrafts/OxiCloud/commits/main)
|
||||
|
||||
[**Documentation**](https://diocrafts.github.io/OxiCloud/) | [**Quick Start**](#-quick-start)
|
||||
<br>
|
||||
**English** | [Español](docs/es/)
|
||||
|
||||
</div>
|
||||
|
||||
NextCloud was too slow on my home server. So I built OxiCloud — a complete cloud platform written in Rust that runs on minimal hardware and stays out of your way.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user