zhayujie and cowagent
ce3bbce2c0
fix: scope upload preview URLs to the selected agent
...
Uploads are stored per agent under <workspace>/tmp, but /upload returned a
preview_url without the agent, so /uploads/<name> resolved against the default
agent's tmp. Under any non-default agent the attachment 404'd and rendered as a
broken thumbnail.
Multipart uploads also ignored the agent entirely and always wrote to the
default workspace: the client sends it in the query string (a field present in
both query and body arrives as a list and breaks handlers), while the handler
read the body alone via rawinput("post").
Both upload routes now resolve the agent and name it in the URL they hand back,
matching what the voice ASR and TTS paths already did.
Co-authored-by: cowagent <cow@cowagent.ai >
2026-09-17 17:03:49 +08:00
..
2026-09-17 15:48:06 +08:00
2026-09-03 10:22:23 +08:00
2026-09-13 21:21:26 +08:00
2026-08-02 17:33:06 +08:00
2026-08-27 15:31:22 +08:00
2026-09-16 12:33:53 +08:00
2026-09-01 19:38:39 +08:00
2026-09-01 19:38:39 +08:00
2026-08-24 20:47:42 +08:00
2026-08-16 14:57:39 +08:00
2026-08-17 12:13:35 +08:00
2026-09-17 15:48:06 +08:00
2026-09-12 22:19:35 +08:00
2026-09-12 17:05:10 +08:00
2026-09-12 14:22:10 +08:00
2026-07-27 20:01:09 +08:00
2026-07-27 20:01:09 +08:00
2026-07-28 12:12:28 +08:00
2026-07-07 16:45:37 +08:00
2026-07-27 20:01:09 +08:00
2026-08-20 10:34:00 +08:00
2026-07-29 09:49:18 +08:00
2026-09-07 18:20:41 +08:00
2026-09-08 15:41:00 +00:00
2026-09-08 15:41:00 +00:00
2026-09-08 15:41:00 +00:00
2026-09-17 16:02:11 +08:00
2026-08-20 14:33:33 +08:00
2026-07-28 12:36:31 +08:00
2026-09-04 18:25:04 +00:00
2026-09-05 01:23:13 +00:00
2026-08-26 16:23:13 +08:00
2026-09-10 13:18:11 +08:00
2026-09-01 19:38:39 +08:00
2026-09-01 19:38:39 +08:00
2026-09-17 16:02:11 +08:00
2026-09-17 16:12:31 +08:00
2026-09-07 20:49:59 +08:00
2026-09-08 16:04:06 +08:00
2026-07-17 17:06:08 +08:00
2026-08-10 16:03:04 +08:00
2026-09-11 15:21:20 +00:00
2026-08-16 02:35:34 +08:00
2026-09-10 13:18:14 +08:00
2026-09-16 12:33:53 +08:00
2026-09-17 15:48:06 +08:00
2026-09-17 16:23:04 +08:00
2026-07-08 11:13:30 +08:00
2026-09-07 20:44:48 +08:00
2026-08-09 18:19:01 +08:00
2026-08-05 16:49:52 +08:00
2026-06-08 20:06:01 +08:00
2026-09-11 15:21:20 +00:00
2026-08-20 16:07:35 +08:00
2026-07-28 12:02:28 +08:00
2026-07-17 17:15:37 +08:00
2026-07-19 18:14:31 +08:00
2026-07-19 13:15:47 +08:00
2026-07-17 17:09:48 +08:00
2026-07-17 12:54:26 +08:00
2026-07-19 13:15:47 +08:00
2026-08-10 16:03:04 +08:00
2026-09-10 11:32:54 +08:00
2026-09-11 15:32:03 +08:00
2026-06-05 11:36:22 +05:30
2026-08-18 15:21:15 +08:00
2026-07-30 12:39:06 +08:00
2026-09-17 16:23:04 +08:00
2026-09-13 10:45:02 +08:00
2026-09-13 12:44:05 +08:00
2026-08-04 13:15:32 +08:00
2026-09-13 22:08:44 +08:00
2026-09-01 20:48:42 +08:00
2026-09-04 15:37:23 -07:00
2026-08-27 15:35:01 +08:00
2026-08-02 17:33:06 +08:00
2026-06-01 21:30:38 +08:00
2026-09-17 16:15:13 +08:00
2026-09-17 16:02:11 +08:00
2026-08-26 16:23:13 +08:00
2026-08-27 15:31:22 +08:00
2026-09-07 20:49:59 +08:00
2026-09-17 16:19:16 +08:00
2026-08-17 19:45:20 +08:00
2026-08-08 20:14:44 +08:00
2026-08-04 21:04:31 +08:00
2026-09-17 15:55:34 +08:00
2026-09-12 14:41:47 +08:00
2026-07-27 17:26:01 +08:00
2026-07-27 17:26:01 +08:00
2026-09-16 12:33:53 +08:00
2026-06-12 11:03:04 +08:00
2026-08-26 16:19:12 +08:00
2026-08-24 20:47:42 +08:00
2026-09-08 15:26:54 +08:00
2026-09-07 18:21:32 +08:00
2026-09-08 15:21:36 +08:00
2026-09-08 16:04:06 +08:00
2026-07-17 10:53:29 +08:00
2026-09-08 15:26:54 +08:00
2026-09-07 18:20:41 +08:00
2026-09-17 16:10:30 +08:00
2026-07-27 18:40:20 +08:00
2026-07-27 16:26:28 +08:00
2026-07-06 15:30:13 +08:00
2026-06-19 20:15:27 +08:00
2026-08-03 21:56:02 +08:00
2026-06-24 19:40:55 +08:00
2026-09-17 16:15:13 +08:00
2026-07-28 17:03:32 +08:00
2026-08-26 16:48:32 +08:00
2026-08-18 15:21:15 +08:00
2026-07-28 17:03:32 +08:00
2026-08-11 10:27:43 +08:00
2026-09-08 15:41:00 +00:00
2026-09-17 16:15:13 +08:00
2026-08-26 12:20:36 +08:00
2026-08-26 16:35:40 +08:00
2026-07-27 18:40:20 +08:00
2026-08-18 15:21:15 +08:00
2026-09-01 19:38:48 +08:00
2026-09-01 19:38:39 +08:00
2026-08-09 08:32:42 +08:00
2026-07-28 11:50:34 +08:00
2026-09-09 15:07:04 +08:00
2026-09-10 20:23:54 +08:00
2026-07-28 12:12:28 +08:00
2026-09-03 17:06:04 +08:00
2026-09-17 17:03:49 +08:00
2026-08-10 15:51:47 +08:00
2026-09-17 15:48:06 +08:00
2026-09-17 16:07:25 +08:00
2026-09-17 16:30:00 +08:00
2026-09-17 16:30:00 +08:00
2026-09-17 16:30:00 +08:00
2026-09-17 16:23:04 +08:00
2026-09-17 16:02:11 +08:00
2026-08-06 18:41:11 +08:00
2026-09-17 16:30:00 +08:00
2026-09-01 20:22:43 +08:00
2026-09-17 16:19:16 +08:00
2026-09-12 14:41:47 +08:00
2026-05-05 23:58:32 +08:00
2026-08-20 11:51:03 +08:00
2026-09-03 17:06:04 +08:00