Databricks App - Streamlit file Upload issue

SanthanaSelvi06
New Contributor III

I used this code snippet from cookbook and created a custom databricks streamlit app to upload files to the volume but i am getting the following error even before start uploading it to volume. Using file_uploader in streamlit while uploading the file from my computer, I got this error.

AxiosError: Request failed with status code 403

Did anyone faced similar issue? FYI I am using databricks community/free edition

 
 

szymon_dybczak
Esteemed Contributor III

Hi @SanthanaSelvi06 ,

Could you check if your app service principal has following permissions?

szymon_dybczak_0-1755683868252.png

 

Hi @szymon_dybczak

Yes I checked it. My app service principal had the permissions you mentioned above. And I found that while uploading the file itself I got the error

SanthanaSelvi06
New Contributor III

I am able to upload the file after whitelisting the app url

View solution in original post