Ticket #335 (closed Bug: fixed)
validation -> upload -> errors [B,K,M]
| Reported by: | nrm | Owned by: | - No owner - |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1 |
| Component: | Libraries:Validation | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
From example controller:
$this->validation->set_rules('imageup', 'required|upload[gif,png,jpg,500K]', 'Image Upload');
If we have error (image is too big) it's look like this:
"The Image Upload file you uploaded was too large. The maximum size allowed is 512000."
512000 of what? I know it's bytes but i don't think normal user knows that. If we have in rule 500K (KB) then error message should have 500 KB, if we have 1M => 1MB (instead of 1048576!!!). Normal user don't know what is 1048576.
Change History
Note: See
TracTickets for help on using
tickets.
