This project consists of a web application developed to allow users to upload files to a server. The web application was specifically designed for a school class, enabling students to upload files and share them with teachers.
The File Transfer Website includes the following features:
- File Upload: Users can select and upload files from their local devices.
- File Transfer: After uploading, the server owner can easily access the files in a designated folder.
- Security: File uploads are handled over an encrypted connection to ensure the security of transmitted data.
- User-Friendly Interface: The website has a simple and user-friendly interface to facilitate the upload and download of files.
The File Transfer Website was developed using the following technologies:
- Python: The back-end logic of the web application was programmed in Python.
- Flask: Flask is a web framework for Python and was used to develop the web application.
- Flask-WTF: Flask-WTF was used to create and validate forms for file uploads.
- Werkzeug: Werkzeug is a Python library used for file handling and secure file name management.
- HTML: HTML was used to define the page structure of the website.
- CSS: CSS was used to style the appearance and layout of the website.
- Bootstrap: Bootstrap, a CSS framework, was used to enhance the design and responsiveness of the website.
To run the File Transfer Website on your local system, you need to follow these steps:
- Ensure that Python is installed on your system (preferably Python 3).
- Open a terminal or command prompt and navigate to the project directory.
- Install the required dependencies by running the following command:
pip install flask flask-wtf
- Start the web application by executing the following command:
python main.py
- Open your web browser and visit the URL
http://localhost:5000
to view the File Transfer Website.
You can also run the File Transfer Website using Docker. However, please note that this setup is only suitable for local development and testing, as it will only run the application on localhost.
Follow these steps to create a Docker image and run the Docker container:
- Ensure that Docker is installed on your system.
- Open a terminal or command prompt and navigate to the project directory.
- Build the Docker image by running the following command:
docker build -t silentup .
- Create and run a Docker container
docker run -p 5000:5000 file-transfer-websitedocker run
- Now you are able to visit silentup on
http://localhost:5000
If you want to customize the website for your own school, you can follow these steps:
- Change the logo: Replace the existing logo images in the
static/logos
folder with your own logos. - Customize the title: Modify the website title in the HTML files
index.html
andthankyou.html
. - Adjust the design: Use CSS to customize the appearance of the website according to your preferences and requirements.
- Scaling the website: If needed, you can extend the functionality of the website, such as adding user registration, authentication, etc.
- Make sure that the
static/files
directory exists and has write permissions for the process running the web application. - Be sure to update the secret key configuration (
SECRET_KEY
) in themain.py
file to ensure application security. - This web application was developed for demonstration purposes and should be thoroughly tested and adapted before use in a production environment.
This project was developed by Karl Harrenga. If you have any questions or suggestions, you can contact me at wick11126@gmail.com.
This project is licensed under the MIT License. You are free to use, modify, and distribute the code, as long as you comply with the license terms.