Today I would like to show you how to implement global preprocessing of uploaded files in Rails. Unfortunately, ActiveStorage does not make it possible to do this simply and explicitly, or I just did not find any information about it.