Comments (1)
A big hurdle to a file download log is that FileZ deletes file information on a regular basis. To preserve this information, I see three options:
- Move file information to a archive table - This necessitates an extra table and correlating information from the logs becomes more complicated (unions, etc)
- Don't delete the information (but do delete file and set file size to zero)
- Pros - Simple correlation, Minimize data repetition
- Cons -
a. ID collision - can be remedied by large hash sizes
b. Large File table - Database should be able to handle this with appropriate indices
c. File information always available - could put a check in code to say not found say 3 days after expiration
d. Lots of files in admin screen
- Duplicate relevant info in log
- Pros -
a. simple to implement.
b. Very easy data viewing (no joins).
c. Only retains information needed,
d. File table kept clean - Cons -
a. Data duplicated on every download (and upload)
- Pros -
This is only off the top of my head. Please feel free to add comments:
I have created an implementation: https://gist.github.com/1012495
This of course needs a table. Unfortunately, I only have postgres statements: https://gist.github.com/1012537
from filez.
Related Issues (20)
- Erreur d'upload de fichier avec PHP7 HOT 3
- La taille du fichier dépasse la limite autorisée
- loggin is successfull but nothing happens
- Share button don't work with Firefox 50
- Mysql 5.7 sql_mode - STRICT_TRANS_TABLES HOT 1
- probleme configuration fileZ HOT 1
- probleme envoie mail HOT 1
- Problème de langue HOT 1
- PHP7 and filez HOT 1
- File list in admin pannel bug
- Gérer les quota par utilisateur et non globalement HOT 1
- How to configure quota per user and not globally HOT 1
- Modification du mot de passe utilisateur
- Error 500
- Non-ASCII characters in filename HOT 1
- Error () iconv_set_encoding(): Use of iconv.internal_encoding is deprecated
- Problème avec Safari sur macOS
- Internal Server Error - Unknown Zend_Ldap option: db_use_global_conf HOT 4
- Peut-on forcer l'utilisation de mot de passe pour l'upload de fichier ?
- Error avec phpCAS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filez.