def METHOD_NAME(request, domain, upload_id):
    try:
        case_upload = _get_case_upload_record(domain, upload_id, request.couch_user)
    except CaseUploadRecord.DoesNotExist:
        return HttpResponseNotFound()
    if not user_may_view_file_upload(domain, request.couch_user, case_upload):
        return HttpResponseForbidden()
    response = StreamingHttpResponse(open(case_upload.get_tempfile_ref_for_upload_ref(), 'rb'))
    set_file_download(response, case_upload.upload_file_meta.filename)
    return response