Fixes corrupted upload due to change of server response