fix: use buildS3Key in /api/desktop/multipart/init to restore -- folder prefix in S3 keys

The /api/desktop/multipart/init endpoint was building the S3 key using a
forward slash separator (prefix + "/" + filename) instead of the "--" delimiter
convention used everywhere else. This caused files uploaded via the desktop
multipart path to land as "Media/Dailies/file.mxf" instead of
"Media--Dailies--file.mxf", breaking AMPP folder sorting which relies on the
"--" delimiter to parse folder hierarchy.

Fix: replace the manual key construction with buildS3Key(prefix, filename),
consistent with /api/upload, /api/presigned, /api/upload/initiate, and
/api/udp/session.
This commit is contained in:
Zac Gaetano 2026-05-02 23:09:05 -04:00
parent 9d39535982
commit e95cc5ae38

1128
server.js Normal file

File diff suppressed because it is too large Load diff