Revert "remove resize method in uploader"

This reverts commit b9f49169863d471faf20121d3d9018dd678fdd95.