Hotfix can't upload folder when rails upgrade from 3.2.12 to 3.2.13.