# Hugging face spaces streamlit error after file upload

**URL:** <https://discuss.huggingface.co/t/hugging-face-spaces-streamlit-error-after-file-upload/161878>\
**Category:** Spaces\
**Created:** [July 5, 2025, 5:24pm UTC](https://discuss.huggingface.co/t/hugging-face-spaces-streamlit-error-after-file-upload/161878 "2025-07-05T17:24:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gholapeajinkya](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@gholapeajinkya](https://discuss.huggingface.co/u/gholapeajinkya)\
**Post date:** [July 5, 2025, 5:24pm UTC](https://discuss.huggingface.co/t/hugging-face-spaces-streamlit-error-after-file-upload/161878/1 "2025-07-05T17:24:27Z")

</div>

Hi, I have been facing an issue with streamlit file upload in my project, seems like its not working due to some permission issue, can someone please help me resolve this issue?  
PermissionError: [Errno 13] Permission denied: ‘/.streamlit’

HF spaces - [DubSync - a Hugging Face Space by gholapeajinkya](https://huggingface.co/spaces/gholapeajinkya/DubSync)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 6, 2025, 3:09am UTC](https://discuss.huggingface.co/t/hugging-face-spaces-streamlit-error-after-file-upload/161878/2 "2025-07-06T03:09:55Z")

</div>

Maybe this case.

> [@PermissionError hot-dog space example](https://discuss.huggingface.co/t/permissionerror-hot-dog-space-example/160917):
>
> I get the following error by executing the hot-dog space example from [https://huggingface.co/docs/hub/en/spaces-sdks-streamlit:](https://huggingface.co/docs/hub/en/spaces-sdks-streamlit:) OSError: PermissionError at /.cache when downloading julien-c/hotdog-not-hotdog. Check cache directory permissions. Common causes: 1) another user is downloading the same model (please wait); 2) a previous download was canceled and the lock file needs manual removal. Traceback: File "/app/src/streamlit\_app.py", line 5, in \<module\> pipeline = pipeline(task="image-c…

> [@PermissionError: \[Errno 13\] Permission denied: '/.cache'](https://discuss.huggingface.co/t/permissionerror-errno-13-permission-denied-cache/146951/5):
>
> You can also do that directly in your Dockerfile: ENV PYTHONUNBUFFERED=1 \ PORT=8000 \ HF\_HOME=/home/user/huggingface
