Project Description
In yesterday’s project, we built a Python script that uploads files to a Dropbox account through the Dropbox API. In today’s project, we extend that program by creating a web app that any user can use to upload files to our Dropbox account. Such an app can be useful in many scenarios when you want to receive files from a certain group of users.
Expected Output
The web app lets the user upload a file. Once the user uploads a file and presses the “Upload” button, the app will be stored inside the “Apps” folder in your Dropbox account.
The solution in the Show Code button includes an easy-to-follow guide to get a Dropbox access token and the complete code that builds the web app depicted in the section above. We also use a secure way to store the Dropbox access code to hide it from third parties since this app is supposed to be deployed on an external server.
Prerequisites
Required Libraries: dropbox, streamlit, doting
pip install dropbox python-dotenv streamlit
Required Files: No files are required.
IDE: Use any IDE.
Danger Zone
Here is the code solution and the steps to get the app up and running:
Happy Coding!
Daily Python Projects Team