move upload to static