Handle files uploaded via the API properly.