Network File Storage Logic

I want to create a website like a file manager. Where the user registers and receives a fixed disk space, say, 20 MB. Now the user can download pdf, doc, txt, jpeg, etc. To the limit of their drive. I can develop before that with PHP.

Now below is my problem:

1) If the user's files are damaged, they can roll back their folders up to 2-3 days. Files must be safe and virus free as users upload their important documents.

Is there a third-party storage server that provides such a facility?

2) Also, all files must be viewed in a browser. I am using google doc viewer. Is a good and safe way to preview a file in a browser? But google links are accessible from all, I need to add some restrictions, since the file can only be viewed by their owner.

I know this is an important task, but I need some kind of logic. Please share your thoughts.

Thanks.

+6
source share
2 answers
  • For this, any cloud storage service can be used. You will get space on your hard drive. There is no storage server for this that provides a version control system for this. You can use git, svn for this. But since the files are binary, you cannot get a complete set of these tools.

  • How the file will be viewed is up to you. If you use PHP, you create a site, and on the server you use the API to interact with the storage service. A Google document is not an option for this if you are using PHP. Please also note that Google links may be restricted.

I offer you this,

  • Locate the cloud storage service and use the storage on your server. Anyone will do.
  • Creating a user interface using PHP and controlling access using PHP.
  • Manipulate files on your server directly or on a third-party storage server via API
  • Use version control to track changes. And use its API at the end of PHP.

Some cloud storage service

+3
source

Try Microsoft SkyDrive or Google Drive or Dropbox

0
source

Source: https://habr.com/ru/post/917073/


All Articles