Question

I am using Pyrocms for an application. There is a module available for File managment. Although it is good enough but i need to customize it according to my requirements.
Here are the requirements

  1. For each file admin from backend can create multiple temporary links
  2. Each file should be limited to some time duration defined by admin
  3. And download limit should be 3 for each user

Now i need suggestions how i can do these tasks to accomplish the application.
Do i need some more tables to handle the situation?
Or can i extend existing file table.
What about temporary links how can i create them and let user download the file?
Another requirement if user uses the link, download popup comes and he cancels three times i have to restrict him now that he can not download it now.
So using ip will do it or some other suggestion. If i have to send multiple links to a single user through email then how can i customize the File modules to fit my needs.
Please give some suggestion.

Was it helpful?

Solution

Would the Download module help at all?

This all sounds like it should be an extra module, as the Files job is just to handle Files. Downloads are a very different aspect, but you can use the Files library in PHP to get lists of files and server them up?

So:

Files handles Files. Downloads handle the downloading of "Files"

If the Download module by Authur Guy is not good enough for your needs you should definitely think about building one and selling it on the store.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top