nntrivi2001
12ea853170
feat(files): uploads survive a dashboard restart
...
An upload through the File Explorer is now sent in 8 MB parts that the
server stages on the host (<data dir>/upload-staging/<user>/<id>/,
server/lib/upload-staging.js) and writes only once every byte is there,
through the same upload/uploadBatch code and guards (?staged=<id>). A
restart, an update or a crash pauses it: the browser waits up to 3 min,
asks how much arrived (GET /fs/upload-part) and sends the rest; the dock
says the dashboard is restarting meanwhile. A commit's answer is stored
and replayed, never written twice; a refused one (EEXISTS) keeps the
bytes for a retry with another conflict policy.
A file uploaded into a member's folder is now written to a hidden temp
name and moved onto its name only when whole: write-as cannot tell a
dropped connection from the end of a file, and `replace` left a truncated
file under the real name when the server died mid-upload.
New: GET|POST|DELETE /api/{lanes/:id,homes/:who}/fs/upload-part; 409
EOFFSET/EINCOMPLETE/EBUSY, 429 ETOOMANY. Verified on a sandbox server:
SIGTERM mid-upload of a 60 MB file in a real browser, resumed and
sha256-identical.
2026-11-02 16:12:57 +07:00
..
2026-09-18 16:52:05 +07:00
2026-10-28 10:41:53 +07:00
2026-10-26 08:32:45 +07:00
2026-10-14 16:06:54 +07:00
2026-10-01 13:39:17 +07:00
2026-09-29 08:25:37 +07:00
2026-10-26 11:18:05 +07:00
2026-10-01 13:39:17 +07:00
2026-10-20 16:44:55 +07:00
2026-09-29 08:25:37 +07:00
2026-10-23 16:41:45 +07:00
2026-10-06 17:12:28 +07:00
2026-09-29 16:09:19 +07:00
2026-09-29 16:09:19 +07:00
2026-10-21 15:44:17 +07:00
2026-09-07 12:09:15 +07:00
2026-10-30 15:22:19 +07:00
2026-10-22 10:04:30 +07:00
2026-10-30 08:50:34 +07:00
2026-10-08 12:22:14 +07:00
2026-10-22 14:34:50 +07:00
2026-10-22 14:34:50 +07:00
2026-10-22 14:34:50 +07:00
2026-10-16 10:20:09 +07:00
2026-10-07 14:11:25 +07:00
2026-10-26 14:22:41 +07:00
2026-10-26 14:22:41 +07:00
2026-10-26 14:22:41 +07:00
2026-10-26 14:22:41 +07:00
2026-10-28 15:09:30 +07:00
2026-10-26 14:22:41 +07:00
2026-10-26 14:22:41 +07:00
2026-09-10 16:05:07 +07:00
2026-10-28 15:09:30 +07:00
2026-09-07 08:32:19 +07:00
2026-09-07 12:09:15 +07:00
2026-10-09 14:57:10 +07:00
2026-10-28 15:09:30 +07:00
2026-11-02 10:47:51 +07:00
2026-11-02 10:47:51 +07:00
2026-09-09 01:29:17 +07:00
2026-10-09 14:57:10 +07:00
2026-09-29 16:09:19 +07:00
2026-09-29 16:09:19 +07:00
2026-10-09 14:57:10 +07:00
2026-09-09 08:30:45 +07:00
2026-10-30 16:06:20 +07:00
2026-10-28 10:41:53 +07:00
2026-10-08 12:22:14 +07:00
2026-09-09 08:30:45 +07:00
2026-10-28 10:41:53 +07:00
2026-10-21 15:44:17 +07:00
2026-10-14 16:06:54 +07:00
2026-10-06 17:12:28 +07:00
2026-10-21 15:44:17 +07:00
2026-10-08 23:04:57 +07:00
2026-10-16 10:20:38 +07:00
2026-10-26 11:18:05 +07:00
2026-10-09 14:57:10 +07:00
2026-10-06 17:12:28 +07:00
2026-11-02 16:12:57 +07:00
2026-10-26 11:18:05 +07:00
2026-10-09 14:57:10 +07:00
2026-11-02 12:12:45 +07:00
2026-09-25 10:44:40 +07:00
2026-10-14 12:21:55 +07:00
2026-10-30 13:05:13 +07:00
2026-10-09 14:57:10 +07:00
2026-11-02 12:22:46 +07:00
2026-11-02 16:12:57 +07:00
2026-11-02 12:22:46 +07:00
2026-11-02 12:22:46 +07:00
2026-11-02 12:00:55 +07:00
2026-11-02 12:12:45 +07:00
2026-10-19 17:13:26 +07:00
2026-10-09 14:57:10 +07:00
2026-10-29 13:40:28 +07:00
2026-10-14 11:55:53 +07:00
2026-10-19 16:49:59 +07:00
2026-10-09 14:57:10 +07:00
2026-10-26 14:22:41 +07:00
2026-09-07 12:09:15 +07:00
2026-10-01 16:03:24 +07:00
2026-10-14 12:21:55 +07:00
2026-10-09 14:57:10 +07:00
2026-09-07 12:09:15 +07:00
2026-07-30 14:39:03 +07:00
2026-09-25 17:30:28 +07:00
2026-09-18 09:44:17 +07:00
2026-09-07 12:09:15 +07:00
2026-10-01 16:03:24 +07:00
2026-09-07 12:09:15 +07:00
2026-10-01 16:03:24 +07:00
2026-10-16 13:38:09 +07:00
2026-10-01 16:03:24 +07:00
2026-11-02 10:11:47 +07:00
2026-10-15 16:02:11 +07:00
2026-10-27 16:39:38 +07:00
2026-10-09 14:57:10 +07:00
2026-10-15 14:44:47 +07:00
2026-10-07 14:11:25 +07:00
2026-10-12 15:40:51 +07:00
2026-10-23 16:41:45 +07:00
2026-10-26 17:12:02 +07:00
2026-10-28 14:31:11 +07:00
2026-10-19 16:49:59 +07:00
2026-10-14 11:55:53 +07:00
2026-10-14 17:21:33 +07:00
2026-10-26 14:22:41 +07:00
2026-10-23 10:44:11 +07:00
2026-10-22 17:02:08 +07:00
2026-10-27 16:39:38 +07:00
2026-08-04 10:03:40 +07:00
2026-10-08 23:04:57 +07:00
2026-10-08 12:22:14 +07:00
2026-10-06 17:12:28 +07:00
2026-10-26 14:22:41 +07:00
2026-10-01 16:33:25 +07:00
2026-10-26 14:22:41 +07:00
2026-10-09 14:57:10 +07:00
2026-10-14 14:17:39 +07:00
2026-10-26 14:53:29 +07:00
2026-11-02 15:32:46 +07:00
2026-10-06 17:12:28 +07:00
2026-10-07 14:11:25 +07:00
2026-10-09 14:57:10 +07:00
2026-10-28 15:09:30 +07:00
2026-10-07 14:11:25 +07:00
2026-10-16 10:16:54 +07:00
2026-10-06 17:12:28 +07:00
2026-10-06 17:12:28 +07:00
2026-10-26 14:22:41 +07:00
2026-10-07 14:11:25 +07:00
2026-10-30 08:50:34 +07:00
2026-10-07 13:24:15 +07:00
2026-09-07 12:09:15 +07:00
2026-07-30 14:39:03 +07:00
2026-10-16 10:27:22 +07:00
2026-10-26 14:22:41 +07:00
2026-09-10 13:44:28 +07:00
2026-10-30 08:50:34 +07:00
2026-10-07 13:24:15 +07:00
2026-10-02 13:22:29 +07:00
2026-09-29 16:09:19 +07:00
2026-10-09 14:57:10 +07:00
2026-10-07 11:18:10 +07:00
2026-10-07 14:11:25 +07:00
2026-08-28 10:05:24 +07:00
2026-10-23 16:41:45 +07:00
2026-10-26 14:53:29 +07:00
2026-10-08 12:22:14 +07:00
2026-10-29 15:54:20 +07:00
2026-10-09 14:57:10 +07:00
2026-10-21 15:44:17 +07:00
2026-10-08 12:22:14 +07:00
2026-10-23 10:44:11 +07:00
2026-11-02 16:12:57 +07:00
2026-10-28 14:31:11 +07:00
2026-10-14 17:21:33 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-10-06 20:22:34 +07:00
2026-10-09 14:57:10 +07:00
2026-10-08 23:04:57 +07:00
2026-11-02 12:12:45 +07:00
2026-10-26 14:22:41 +07:00