mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
The multipart middleware returns an array when a field is repeated, but handleUpload treats every value as one file. Flatten the values before moving them so repeated and unique field names both work. Signed-off-by: Raymond (Kai) Tainaan <282025710+rtainaan@users.noreply.github.com>