Page MenuHomePhabricator

[lib][keyserver] Move upload output validators to lib
ClosedPublic

Authored by inka on May 14 2024, 5:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Nov 13 2024, 5:36 AM
Unknown Object (File)
Nov 3 2024, 5:35 AM
Unknown Object (File)
Nov 1 2024, 9:05 PM
Unknown Object (File)
Oct 26 2024, 5:01 AM
Subscribers

Details

Summary

upload_multimedia is listed in lib as an endpoint. We don't have an endpoint for it in the endpoint.js on the keyserver, but we have code that adds a handler

keyserverRouter.post(
  '/upload_multimedia',
  multerProcessor,
  uploadHandler(multimediaUploadResponder),
);

I am moving this validator as well so that I can type something on lib corrreclty in later diffs - I will need to be able to list validators for all endpoints as specifiec on lib, so including upload_multimedia

Test Plan

flow, checked that mulimedia upload works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable