To store data on a server and manage files efficiently, you can create a data storage system using a file-based or database approach, depending on your use case. Below is a guide on how to organize and store data on your server, and how you can access it via a web application or a local script.
1. File-based Storage:
If you are saving files like CSV, Excel, or other document types on your server, here is an example structure and approach:
Folder Structure:
Create a folder structure on your server where files are stored. You can organize files by date, type, or categories.
Example:
/var/www/databi.io/
├── /html/
├── /Vijayalakshmi/
├── /CVEDatasets/
├── CVE_2024_01.csv
├── CVE_2024_02.csv
Storing Files on Server:
1. Upload via Streamlit:
If you want to upload files to the server using Streamlit, you can set up a file uploader component:
2. Accessing Files:
To access files saved on the server, you can use Python to load them directly from the file path.