file orbit

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Abstract

This project presents a user-friendly file management system that


enables individuals to efficiently manage their files without the need
for administrative privileges. The system allows users to create,
upload, edit, and delete their files in a secure and organized manner.
Key features include:
• User authentication and authorization
• File upload and download capabilities
• File versioning and history
• Search and filtering functionality
• Folder creation and management
• Access control and sharing options
The system prioritizes user experience and simplicity, eliminating the
need for administrative intervention. By providing a straightforward
and intuitive interface, users can effortlessly manage their files and
collaborate with others. This project aims to enhance productivity and
organization for individuals and teams, making file management a
seamless and hassle-free experience.

1
Table of Contents

SLNO. DESCRIPTION PAGE NO.


1. Intoduction
2. Software
Requirement
3. System Requirement
4. Design
5. Output
6. Bibliography

2
1.Introduction

• Purpose

This project aims to develop a File Management System that


provides an efficient, user-friendly platform for uploading,
storing, searching, viewing, downloading, and managing files.
The system aims to streamline file management by allowing
users to easily locate and retrieve files based on name. while
ensuring data integrity.

• Problem statement

In today's digital age, managing a large number of files


efficiently and securely has become a significant challenge for
individuals and organizations. Traditional file storage systems
lack essential features such as easy search functionality, which
can lead to inefficient file retrieval and organization
inefficiencies. There is a need for a streamlined system that
allows users to store, search, view, download, and manage files
with ease.

• Overview

The File Management System is a web application developed


using Flask, a Python web framework, which allows for
managing file storage, search, view, and download
functionalities. This system enables users to upload, search, and
download files from a database-backed repository. Files are
stored on the server, and metadata such as file type, size, and
upload date are maintained in an SQLite database. The
application boasts a user-friendly interface for efficient file
3
management. Users can search for files by name, view file
details, and download files directly.

Key features include:

1. File Upload: Securely upload files to the server where data is


stored in a database.
2. File Search: Search for files by name.
3. File View and Download: View file details, download, or
view files directly in the browser in Pdf Format.

Benefits:

1. Easy file upload and management


2. Quick file listing and filtering
3. Convenient file download options
4. No administrative overhead

4
2. Software Requirement

• Python - Required as the core programming language for


developing the Flask web application.

• Flask - Lightweight web framework used for building the web


application and handling HTTP requests.

• SQLite - Lightweight, file-based relational database management


system used for storing file metadata (filename, size,
type, upload date).

• HTML/CSS - Required for creating the frontend user interface


and designing the layout of the web pages.

• Bootstrap - Frontend framework for responsive design and


enhancing the visual appearance of the user interface.

• Web Browser - A web browser like Chrome, Firefox, or Edge to


test and interact with the web application.

• Text Editor/IDE - Development tools such as Visual Studio Code,


PyCharm, or Sublime Text for writing and editing code.

5
3.System Requirement

• Internet Connectivity: Stable and reliable internet connection.


• Processor: Dual-core processor (Intel i3 or equivalent) or higher
• Clock Speed: 1.7 GHz or more
• RAM: Minimum 4 GB (8 GB or higher recommended for
smoother performance)
• Windows 10,Windows 8,7
• Storage: At least 1 GB of free disk space for project files,
database storage, and dependencies (more may be required
based on file storage needs)
• Display: Minimum resolution of 1280x720
• Keyboard: Standard keyboard

6
4.Design

5.Output

7
8
Codes

from flask import Flask, request, render_template,


send_from_directory, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
import os
app = Flask(_name_)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///files.db'
app.config['UPLOAD_FOLDER'] = 'uploads'
db = SQLAlchemy(app)
class File(db.Model):
id = db.Column(db.Integer, primary_key=True)
filename = db.Column(db.String(150), nullable=False)
filepath = db.Column(db.String(150), nullable=False)
def index():
return render_template('index.html')
@app.route('/search', methods=['GET', 'POST'])
def search():
if request.method == 'POST':
query = request.form['query']
files = File.query.filter(File.filename.contains(query)).all()
return render_template('search.html', files=files)
return render_template('search.html')
@app.route('/uploads/<filename>')
def view_file(filename):

9
return send_from_directory(app.config['UPLOAD_FOLDER'],
filename)
@app.route('/download/<int:file_id>')
def download_file(file_id):
file = File.query.get_or_404(file_id)
return send_from_directory(app.config['UPLOAD_FOLDER'],
file.filename, as_attachment=True)
@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
if request.method == 'POST':
file = request.files['file']
filename = file.filename
filepath = os.path.join(app.config['UPLOAD_FOLDER'],
file.save(filepath)
new_file = File(filename=filename, filepath=filepath)
db.session.add(new_file)
db.session.commit()
return redirect(url_for('index'))
return render_template('upload.html')
if _name_ == '_main_':
with app.app_context():
db.create_all()
if not os.path.exists(app.config['UPLOAD_FOLDER']):
os.makedirs(app.config['UPLOAD_FOLDER'])
app.run(debug=True)

10
6.Bibliography

References:

• Python.org. "Python Official Documentation." Python Software


Foundation. Accessed September 2024.
https://docs.python.org/3/.
• Pallets Projects. "Flask-SQLAlchemy: Simplifying SQL
Alchemy Integration in Flask." Pallets Projects. Accessed
September 2024. https://flask-sqlalchemy.palletsprojects.com/.
• Real Python Tutorials. "How to Build a File Upload and
Download Application Using Flask." Real Python. Accessed
September 2024. https://realpython.com.
• SQLAlchemy Documentation. "SQLAlchemy ORM Tutorial for
Python Developers." SQLAlchemy. Accessed September 2024.
https://docs.sqlalchemy.org.

11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy