# Programming Phoenix LiveView B8: Page 141: consume\_uploaded\_entry returns only path

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-b8-page-141-consume-uploaded-entry-returns-only-path/81609>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, errata\
**Created:** [6 November 2022 22:36 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b8-page-141-consume-uploaded-entry-returns-only-path/81609 "2022-11-06T22:36:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicksergeant](https://forum.devtalk.com/user_avatar/forum.devtalk.com/nicksergeant/32/4601_2.png) [@nicksergeant](https://forum.devtalk.com/u/nicksergeant)\
**Post date:** [6 November 2022 22:36 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b8-page-141-consume-uploaded-entry-returns-only-path/81609/1 "2022-11-06T22:36:57Z")

</div>

On page 141:

```auto
{:ok, path} = consume_uploaded_entry(
        socket,
        entry,
        ...

```

I get the following error with LiveView 0.18.3:

```auto
[error] GenServer #PID<0.1760.0> terminating
** (MatchError) no match of right hand side value: "/images/live_view_upload-1667771816-586053933204069-2"

```

Changing to the following resolves the issue:

```auto
path = consume_uploaded_entry(
        socket,
        entry,
        ...

```

I tried reading through [phoenix\_live\_view/upload.ex at v0.18.3 · phoenixframework/phoenix\_live\_view · GitHub](https://github.com/phoenixframework/phoenix_live_view/blob/v0.18.3/lib/phoenix_live_view/upload.ex#L279) but I’m not entirely sure why it’s not returning a tuple.
