Now the original media will have the correct type, which will fix the generated path for the stored file.