There's a lot of duplicated code across Redactor, ContentBlocks and MoreGallery that handle file uploads into media sources. This can be abstracted into a standalone UploadHandler that accepts the $_FILES array and returns a useful status. Or maybe a base processor.