add control flag for upload option