replace magic number 5 with UPLOAD_RETRY