unified way of creating FormData and fixed IE issues with uploads