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:- Camera
- Gallery
Take a photo directly with your phone’s camera
Take Photo
Step 3: Document Upload Service
TheDocumentUploadService handles secure uploads:
Document Upload Service
Document Types & Validation
Driver’s License
DriverLicense
required
Driver’s license with front and back photos
License Upload
- ✅ 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
- ✅ 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
File Validation
File Validation
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
Secure Storage
Secure Storage
- Files stored outside web root when possible
- Unique filenames prevent overwrites
.htaccessprotection against PHP execution- Automatic cleanup of old documents
Access Control
Access Control
- 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_entimestamp is set - Old files are deleted from the server
Troubleshooting
Upload Fails
Upload Fails
Possible causes:
- File too large (over 5MB)
- Invalid file format
- Network connection issue
- Server permissions problem
- Reduce image quality/size
- Use JPG format
- Check internet connection
- Try again later
Document Rejected
Document Rejected
Common reasons:
- Photo is blurry or unreadable
- Document is expired
- Information doesn’t match profile
- Wrong document uploaded
- Take a clear, well-lit photo
- Ensure all text is readable
- Verify dates are valid
- Upload the correct document
Next Steps
Vehicle Management
Complete vehicle registration and details
Profile Management
Update your driver profile settings