mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 05:44:59 +00:00
This commit refactors the direct external upload routes (get presigned put, complete external, create/abort/complete multipart) into a helper which is then included in both BackupController and the UploadController. This is done so UploadController doesn't need strange backup logic added to it, and so each controller implementing this helper can do their own validation/error handling nicely. This is a follow up to e4350bb96648622b73414712588ffc015e193562