Giter Site home page Giter Site logo

file-transfer's Introduction

File-Transfer

Sharing files has never been easy for people who just want to share a file or two every so often. Using popular sites like MediaFire, where they have to register for an account, upload the file then send the link to the site where their friend has to then download from (often being redirected to various ad.fly links and such) are just a few of the issues people have. I decided to combat this by creating a File Transfer website that takes away all of the difficulties.

Sharing files with friends through the internet has never been so easy! Follow these easy steps to get started at: http://filetransferapp.pythonanywhere.com/transfer

Navigating to the home page

Main Screen This is the home page for the website. You can navigate through the site by using the navigation bar at the top or by clicking the buttons at the center of the page.

Upload file

Upload To start, you need to upload the file you want to send to the site. Fill out the required metadata here, including a file name, description, then choose the file that is located on your computer. This data will be saved in the database.

Recieve code

Code Once you upload the file, you'll receive a code on the screen. Simply click it to copy it to your clipboard. This code is unique only to the file that you uploaded, and you can send this code to your friend so they can download that specific file. For this example, the file uploaded was a .txt file containing lorem ipsum text. The code was 712F93CF5A2A434488865659B.

Download file

Download Once the person recieves the code, all they have to do is navigate to the site and proceed to the download page.

Enter code

Enter Code Enter the code into the text box that is unique to the file (in this case, we will enter 712F93CF5A2A434488865659B, corresponding to the test file that was uploaded). Click the "submit" button to proceed.

Final step

Download File Finally, simply click the "download" button to start the download process to your computer.

Conclusion

The process is simple as that! In this current version, no account is needed or no redirects to ad.fly websites to prolong the download process. Completing this project, I learned various things that will be useful in future projects:

  • File upload / storage using Django
  • Django forms and storing metadata into the admin page
  • Generating unique keys for each file, ensuring one key corresponds to exactly one file
  • Django templates (used with the navigation bar across all of the pages)
  • Rendering variables in Python onto the page for users to view (for the serial keys)
  • Implementing JavaScript functions for copy buttons and custom buttons

file-transfer's People

Contributors

rohank6 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.