Skip to main content

Document Upload System

Viax requires drivers to upload photos of official documents for verification. All uploads are secure, organized by driver, and reviewed by our admin team.
Documents are stored securely on the server with automatic cleanup of outdated files. Only the latest version is kept active.

Required Documents

Driver's License

Front and back photos of your valid driver’s license

SOAT Insurance

Mandatory vehicle insurance certificate photo

Tecnomecánica

Technical inspection certificate photo

Vehicle Ownership

Tarjeta de Propiedad (ownership card) photo

Upload Process

Step 1: Document Selection

The app provides an easy interface to select photos:
Photo Upload Widget

Step 2: Image Selection Method

Choose between camera or gallery:
Take a photo directly with your phone’s camera
Take Photo
Image Quality Requirements:
  • Maximum size: 5MB per photo
  • Recommended resolution: 1920x1920 pixels
  • Automatic compression to 85% quality
  • Supported formats: JPG, PNG, WEBP, PDF

Step 3: Document Upload Service

The DocumentUploadService handles secure uploads:
Document Upload Service

Document Types & Validation

Driver’s License

DriverLicense
required
Driver’s license with front and back photos
License Upload
Validation checks:
  • ✅ License number is not empty
  • ✅ Category is C1, C2, or C3 (public service)
  • ✅ Expiry date is in the future
  • ✅ Not expiring within 30 days

SOAT (Vehicle Insurance)

object
required
Mandatory vehicle insurance certificate
Vehicle Model - SOAT
Validation checks:
  • ✅ SOAT number provided
  • ✅ Expiry date is valid and in the future
  • ✅ Photo uploaded and visible

Tecnomecánica (Technical Inspection)

object
required
Vehicle technical inspection certificate
Tecnomecánica Validation

Tarjeta de Propiedad (Ownership Card)

object
required
Vehicle ownership registration card
Ownership Card

Upload Workflow Example

Complete example of uploading vehicle documents:
1

Collect Document Paths

User selects all required photos
2

Upload Documents

Upload all documents before saving vehicle
Upload Documents
3

Save Vehicle with URLs

Create vehicle with uploaded document URLs
Save Vehicle
4

Show Success

Display confirmation message

Server-Side Processing

File Storage Structure

Documents are organized on the server:

Upload Endpoint Response

Security & Privacy

Server performs strict validation:
  • File type verification (MIME type check)
  • Size limit enforcement (max 5MB)
  • Only allowed formats: JPG, PNG, WEBP, PDF
  • Conductor existence verification
  • Files stored outside web root when possible
  • Unique filenames prevent overwrites
  • .htaccess protection against PHP execution
  • Automatic cleanup of old documents
  • Only authenticated conductors can upload
  • Conductors can only access their own documents
  • Admin approval required before activation

Document History

The system maintains a history of all uploaded documents:
  • When a new document is uploaded, the old one is marked as activo = 0
  • The reemplazado_en timestamp is set
  • Old files are deleted from the server

Troubleshooting

Possible causes:
  • File too large (over 5MB)
  • Invalid file format
  • Network connection issue
  • Server permissions problem
Solution:
  • Reduce image quality/size
  • Use JPG format
  • Check internet connection
  • Try again later
Common reasons:
  • Photo is blurry or unreadable
  • Document is expired
  • Information doesn’t match profile
  • Wrong document uploaded
Solution:
  • Take a clear, well-lit photo
  • Ensure all text is readable
  • Verify dates are valid
  • Upload the correct document
Best Practices:
  • Take photos in good lighting
  • Ensure all corners of the document are visible
  • Avoid shadows and glare
  • Use a flat surface as background
  • Verify all text is readable before uploading

Next Steps

Vehicle Management

Complete vehicle registration and details

Profile Management

Update your driver profile settings