Skip to content

ATOUIYakoub/File_Upload-Download_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

File Upload && Download API

This project implements a RESTful API for uploading and downloading various types of files such as images, videos, and PDFs using Django REST Framework.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python (3.x recommended)
  • Django
  • Django REST Framework

Installation

  1. Clone the repository:
git clone https://github.com/ATOUIYakoub/File_Upload-Download_API.git
  1. Install dependencies:
# Create and activate a virtual environment in order to install the dependencies
python -m venv .env
.\env\Scripts\activate
pip install -r requirements.txt

Usage

  1. Run the Django development server:
# Run the database migrations, this creates automatically a db.sqlite3 file
$python manage.py migrate
# Run the local server
python manage.py runserver
  1. Open your web browser and navigate to http://localhost:8000 to access the API.

Endpoints

  • POST /file/upload-file/: Upload a file (supported file types: images, videos, PDFs).
  • GET /file/download-file/?download={name_of_the_file}: Download a file (change "name_of_the_file" with the file you upload).

Supported File Types

  • Images: JPG, PNG, GIF, etc.
  • Videos: MP4, AVI, MOV, etc.
  • PDFs: PDF documents.

Author: ATOUI Abderahman Yakoub | 2024

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages