May 11, 2013

Develop Self-Destruct File Sharing Portal Using Php

Posted by Nevil patel
Before reading this article Please check this website, https://privnote.com/
We will develop similar like this but for files of any types instead notes.


This application will be useful for sharing files securely and confidentially because it generated dynamic link for download and deletes file after being downloaded.
Once you upload any file, It will be uploaded to server and generate download link. Get that download link and give it to one you want. Once the other user downloads it, file will be automatically deleted. So Other user will get that file and it is deleted from server too.If user or tries to download it 2nd time then It will give "Incorrect URL" as message.


Inside this folder you will find filedetails.sql file. That is database file. Pease import this file to your mysql database to run this application. Also change username, password, host of database accordingly.

Here I will guide you use and develop application like this.

First of all we will understand functionality through Screenshots.

(Choose File)

(Selected File)

(Uploaded File & Generated Dynamic URL)

(Uploaded File--Server Directory)

(Downloaded File)
(Trying to Download File second time)

(Deleted File from Server)

(Database Design)

Now Let’s Understand Code.

Here we are checking whether user is selected any file or not. If it is selected then we are directing it to upload process script.


Here, We are uploading file on server and generating dynamic link for download for security and storing data to database.



Here we are checking whether user is selected any file or not. If it is selected then we are directing it to upload process script.

0 comments:

Post a Comment