debug for upload