Overview
The Document Management system provides a centralized repository for legal and official documents related to ESP Santa Fe de Antioquia. This feature enables administrators to upload, organize, and publish documents while providing public access to important legal information.Purpose
This system ensures transparency by making official documents, legal notices, procurement documents, and organizational policies publicly accessible through the website.
User Workflows
Admin Creates Document Entry
Administrators create a new document entry with:
- Document name
- Project/category name
- Detailed description
- Related project selection (e.g., bidding processes)
Upload Files
One or more PDF files are uploaded and associated with the document entry. Files are stored in
/images/filesDocuments/.Public Access
Citizens browse documents at
/documentos-legales and access specific documents using URL-friendly names at /documentos-legales/{urlName}.Key Features
Multi-File Support
Each document entry can have multiple PDF files attached
URL-Friendly Access
Automatic generation of SEO-friendly URLs from document names
Version Tracking
Track creation and update dates to monitor document revisions
Project Association
Link documents to specific projects or bidding processes
Data Model
File Document Model
Controller Actions
Admin Routes
List Documents - GET /Documents
List Documents - GET /Documents
Purpose: Display all documents in admin dashboardAccess: SuperAdmin, AdminFeatures:
- Sortable list of all documents
- Quick view of key metadata
- Actions for edit and delete
Create Document - GET/POST /Documents/Create
Create Document - GET/POST /Documents/Create
Purpose: Add new document entryAccess: SuperAdmin, AdminValidation:
- Checks for duplicate names
- Validates file formats (PDF only)
- Ensures required fields are completed
View Details - GET /Documents/Details/{id}
View Details - GET /Documents/Details/{id}
Purpose: View document with all attached filesAccess: SuperAdmin, Admin (for integer ID), Public (for URL name)Features:
- Displays document metadata
- Lists all attached files
- Shows update history
- Indicates if document has been modified
Delete Document - GET/POST /Documents/Delete/{id}
Delete Document - GET/POST /Documents/Delete/{id}
Purpose: Remove document and associated filesAccess: SuperAdmin, AdminWarning: Deletion is permanent and removes all associated file records.
Public Routes
Browse Documents - GET /documentos-legales
Browse Documents - GET /documentos-legales
Purpose: Public listing of all available documentsAccess: Public (no authentication)Features:
- Grid or list view of documents
- Filter by project/category
- Search functionality
- Direct links to document details
Download File - GET /documentos-publicos
Download File - GET /documentos-publicos
Purpose: Serve PDF files to usersAccess: PublicSecurity: Files are served from a protected directory with proper MIME types
Document Categories
Documents are typically organized by project association:Procurement Documents
Bidding terms, requirements, and specifications linked to procurement processes
Legal Notices
Official announcements, regulations, and compliance documents
Financial Reports
Budget documents, financial statements, and audit reports
Policies & Procedures
Internal policies, operational procedures, and guidelines
Update Tracking
The system automatically tracks document modifications:File Storage
PDF files are stored in
/wwwroot/images/filesDocuments/ with original filenames preserved. Ensure this directory has appropriate write permissions for the application pool.Storage Best Practices
- Naming Convention: Use descriptive, URL-safe filenames
- File Size: Limit PDFs to 10MB for optimal performance
- Backup: Regularly backup the filesDocuments directory
- Security: Serve files through the controller, not direct file access
Integration with Bidding System
Documents can be linked to bidding processes (NacionLicitante):- Associated with specific bidding processes
- Displayed on bidding detail pages
- Tracked as part of procurement workflows
SEO Optimization
The system generates URL-friendly slugs from document names:Validation Rules
Required Fields
- Document name (must be unique)
- Project name
- Description
- At least one PDF file
File Validations
- Format: PDF only
- Size: Maximum 10MB per file
- Multiple files allowed per document
Related Features
- Bidding & Procurement - Links documents to bidding processes
- PQRSD Management - Citizens may reference documents in requests