# File\_upload is uploading the file but the value is always None

**URL:** <https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268>\
**Category:** Panel\
**Tags:** param, bokeh, panel\
**Created:** [May 28, 2024, 2:04pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268 "2024-05-28T14:04:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshitha](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@Harshitha](https://discourse.holoviz.org/u/Harshitha)\
**Post date:** [May 28, 2024, 2:04pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/1 "2024-05-28T14:04:12Z")

</div>

File\_upload widget is not printing the value and always None.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 28, 2024, 3:57pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/2 "2024-05-28T15:57:58Z")

</div>

Hi can you share an minimal example?

---

<div class="post-metadata">

**Author:** ![Harshitha](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@Harshitha](https://discourse.holoviz.org/u/Harshitha)\
**Post date:** [May 28, 2024, 6:33pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/3 "2024-05-28T18:33:51Z")

</div>

![image](https://discourse.holoviz.org/uploads/default/original/2X/d/d94b7883f97bce689c992ad831262eb9f2d68264.png)

I hope this helps you get an idea about the bug!

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 28, 2024, 6:48pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/4 "2024-05-28T18:48:08Z")

</div>

How big is the file?

If it’s a large file: [FileInput — Panel v1.4.3](https://panel.holoviz.org/reference/widgets/FileInput.html#how-it-works)

---

<div class="post-metadata">

**Author:** ![Harshitha](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@Harshitha](https://discourse.holoviz.org/u/Harshitha)\
**Post date:** [May 28, 2024, 6:59pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/5 "2024-05-28T18:59:39Z")

</div>

file size is 208.3 Mb

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 28, 2024, 7:37pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/6 "2024-05-28T19:37:09Z")

</div>

Likely too big, or at least it hasn’t finished uploading so value is None.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [June 14, 2024, 6:54pm UTC](https://discourse.holoviz.org/t/file-upload-is-uploading-the-file-but-the-value-is-always-none/7268/7 "2024-06-14T18:54:58Z")

</div>

I encountered this myself:

```auto
  --websocket-max-message-size BYTES
                        Set the Tornado websocket_max_message_size value (default: 20MB)

```

If it’s above 20 MBs the websocket will disconnect:

`2024-06-14 11:39:36,766 WebSocket connection closed: code=None, reason=None`

So, you have to `panel serve sql_app.py --websocket-max-message-size 157286400` (this is for 150 MBs)
