file_size
TechnicalGenerate human-readable file sizes like '2.4 MB', '156 KB', '1.2 GB'. For file management UIs, upload limit testing, and storage dashboards.
Example Outputs
2.4 MB156 KB1.2 GB512 bytes48.7 MBAPI Usage
Send a POST request to generate file size data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "file_size",
"type": "file_size"
}
]
}
]
}'Common Use Cases
- File manager testing
- Upload limit validation
- Storage dashboard seeding
- Download progress testing
Quick Info
- Field Type
- file_size
- Category
- Technical
- Parameters
- None required
- Output Format
- JSON, CSV, SQL
Related Types
Generate File Size + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.