Files Management

- What the Files Module Is
 

The Files module in biz1 is the system’s central document vault.
 

It is the single place where all customer-related files are stored, organized, previewed, secured, and reused across the system.
 

This module is not a simple upload area.

It is a structured document management layer that connects customers, workflows, communication, and automation into one controlled file system.
 

You can think of it as:
 

A secure customer file cabinet + intelligent folder system + built-in document viewer

 


 


- One Module, Two Entry Points
 

The Files module can be accessed in two different ways, depending on what the user needs to do — but behind the scenes, it is always the same module, using the same folders, permissions, and logic.
 

1️⃣ Sidebar → Files
 

This opens the global Files page.
 

Here, users see:
 

  • all files across all customers,

  • folder filters (Default, Signs, WhatsApp files, Forms, Email files, and custom),

  • a file list that includes the Customer Name column.
     

This view is used for organization-wide file management, audits, and searching across customers.
 



2️⃣ Customer Profile → Files Tab
 

This opens the Files tab inside a single customer profile.
 

Here, users see:
 

  • only files belonging to that customer,

  • the same folder structure,

  • the same file actions.
     

This view is used for customer-specific work, such as contracts, forms, ID documents, and communication attachments.
 



Key Rule
 

There is no separate Files system.

Both views are simply different filters on the same Files module.
 



- Who Uses the Files Module
 

The Files module is used by multiple roles, each with controlled access.
 

Admins & Organization Owners
 

They use it to:
 

  • manage all customer documents,

  • create and maintain folder structures,

  • upload, rename, delete, and organize files,

  • preview sensitive documents,

  • ensure compliance and documentation consistency.
     

Team Members
 

They use it to:
 

  • upload files for customers,

  • view and download permitted files,

  • preview documents during daily work.
     

Deletion and folder management depend on permissions.
 

Clients (Customer Login / Portal)
 

They use it to:
 

  • view their own shared files,

  • download documents,

  • preview PDFs and images.
     

Clients cannot edit, upload, or delete internal files.
 



- Folder Logic (Core Concept)
 

The Files module uses a structured folder system that keeps files organized and predictable.
 

Two Folder Layers
 

Global Folders
 

These folders exist for the entire organization and are available to all customers.
 

Examples include:
 

  • Default

  • Signs

  • Forms

  • Email files

  • WhatsApp files

  • Custom organization folders
     

These folders define file intent, not ownership.
 



Customer-Specific Folders
 

Inside each customer, additional folders can exist:
 

  • custom folders,

  • nested sub-folders,

  • customer-only structures.
     

These are used when a customer has many documents and needs deeper organization.
 



File Ownership Rule
 

Every file always belongs to:
 

Customer → Folder → (Optional Sub-Folder) → File
 

This rule ensures:
 

  • files are never “lost”,

  • permissions are always enforceable,

  • auditing is possible.
     



⬆️ File Upload – How It Works
 

Uploading a file follows a simple but controlled flow:
 

  1. User clicks Add New File.
     

  2. One or more files are selected.
     

  3. The user chooses:
     

    • a folder,

    • optionally a sub-folder.
       

  4. A display name or note can be added.
     

  5. The upload is completed.

     

System Behavior
 

  • Files are stored with safe, internal naming.

  • Display names can differ from physical file names.

  • Upload date and ownership are recorded immediately.

  • The file appears instantly in the list.
     

Uploads can also originate automatically from:
 

  • Email attachments,

  • WhatsApp messages,

  • Form submissions,

  • Generated PDFs and documents.
     



- File Viewing & Preview Intelligence
 

The Files module is designed to preview first, download second.
 

Users can open files directly in the system without saving them locally.
 

Preview Behavior
 

  • PDFs open in a secure embedded viewer.

  • Images open inline with zoom support.

  • Office documents open in an online viewer.

  • Audio and video files play in a built-in media player.

  • Unsupported formats fall back to safe download.
     

This improves security and speeds up daily work.
 



- Files List – A Working Dashboard
 

Each file appears as a row in the file list.
 

Users can immediately see:
 

  • file type or thumbnail,

  • display name,

  • upload date,

  • customer name (on global Files page).
     

Per-File Actions
 

  • View

  • Download

  • Rename

  • Delete (permission-based)

  • Copy file link
     

This makes the Files list a working document dashboard, not passive storage.
 



- Search & Filtering
 

The Files module supports fast access through:
 

  • folder filtering,

  • sub-folder filtering,

  • file name search,

  • customer-based filtering (via profile view).
     

Most filtering works dynamically without full page reloads.
 



✏️ Rename Without Re-Upload
 

A key design decision:
 

Renaming a file does not change the physical file.
 

Only the display name is updated.
 

This allows:
 

  • correcting naming mistakes,

  • standardizing document labels,

  • keeping signed or referenced files intact.
     



- Controlled Deletion
 

File deletion is strictly permission-based.
 

  • Only authorized users can delete files.

  • Clients cannot delete files.

  • Deleting a file removes:

    • the database record,

    • the physical file from storage.
       

This prevents accidental data loss.
 



- Security Model
 

Behind the scenes, the Files module enforces:
 

  • role-based access control,

  • customer ownership validation,

  • secure file paths,

  • controlled preview URLs,

  • protected download endpoints.
     

Files are never exposed directly from storage.

They are always served through a secure viewer or download handler.
 



- How Files Connect to the Rest of biz1
 

 Files module is deeply integrated with the system:
 

  • Customers – full document history

  • Documents – invoices, orders, proposals

  • Signs – signed contracts and PDFs

  • Forms – uploaded attachments

  • Email – archived attachments

  • WhatsApp – chat media

  • Tickets – support files

  • Projects – project documents

  • Automation – generated or attached files
     

Files are never isolated — they are reusable across workflows.
 



- Why This Design Works
 

The Files module is built around a few smart principles:
 

  • Files always belong to a customer.

  • Folder logic is flexible and multilingual.

  • Preview reduces unnecessary downloads.

  • Permissions protect critical data.

  • One module serves many use cases.
     

This makes it suitable for:
 

  • sales teams,

  • legal documentation,

  • medical or compliance records,

  • operations and support.
     



✅ Final Functional Summary
 

The Files module in biz1 is a secure, customer-centric document system that centralizes file storage, organization, preview, and access control.
 

It ensures that files are:
 

  • easy to find,

  • safe to preview,

  • controlled by permissions,

  • connected to workflows,

  • scalable across the organization.

     

information_img