Pregunta

I want to develop a website like file manager. Where user register and will get fix disk space lets say 20MB. Now user can upload their pdf, doc, txt, jpeg etc files upto their disk limit. I can develop upto this using PHP.

Now below is my issue:

1) If user's files are corrupted they can rollback their folders before 2-3 days. Files must be secure and safe from viruses as users are uploading their important documents.

Is there any 3rd party storage server who provides such facility?

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

I know it's a major task, but i just need some sort of logic. Please share your thoughts.

Thanks.

¿Fue útil?

Solución

  1. Any cloud storage service can be used for this. You'll get HDD space. There is not storage server who provides revision control system for this. You can use git, svn for this though. But as the files are binary you can not get full facility of these tools.

  2. How file will be previewed depends on you. If you use PHP you make the site and at the backend you use the API to interact with the storage service. Google doc is not an option for this if you use PHP. Also note Google links can be made private.

I suggest you this,

  • Find a cloud storage service and use the storage in your server. Any will do.
  • Create UI using PHP and control the access using PHP too.
  • Manipulate files in your server directly or in 3rd party storage server via API
  • Use a revision control system to track the changes. And use its API in PHP end.

Some cloud storage service

  1. Amazon S3. It also supports Versioning.
  2. Google Cloud Storage
  3. Microsoft Azure

Otros consejos

Try Microsoft SkyDrive or Google Drive or Dropbox

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top