| 59 | rodolico | 1 | All files will be stored on disk, by default in this
 | 
        
           | 52 | rodolico | 2 | directory/file_storage.
 | 
        
           |  |  | 3 |   | 
        
           |  |  | 4 | file names will be of the form:
 | 
        
           |  |  | 5 | ######-[csd]-name-id.extension
 | 
        
           |  |  | 6 | where 
 | 
        
           |  |  | 7 |    ###### is a six digit sequential number, 0 padded
 | 
        
           |  |  | 8 |    [csd] will use 'c', 's', 'd' to indicate it is attached to client, site or device
 | 
        
           |  |  | 9 |    name  will be either the client, site or device name
 | 
        
           |  |  | 10 |    id    will be either the client, site or device id
 | 
        
           |  |  | 11 |   | 
        
           |  |  | 12 | directory will build base on 2 digits of of the sequence, so no more than
 | 
        
           |  |  | 13 | 100 files in any directory. Example:
 | 
        
           |  |  | 14 |   | 
        
           |  |  | 15 | 001234-c-Widgit Supply Company-154.docx
 | 
        
           |  |  | 16 |   | 
        
           |  |  | 17 | would be stored as
 | 
        
           |  |  | 18 | file_storage/00/12/34/001234-c-Widgit Supply Company-154.docx
 |