Ticket #336 (closed Feature Request: wontfix)
validation -> upload -> returned data
| Reported by: | nrm | Owned by: | - No owner - |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1 |
| Component: | Libraries:Validation | Version: | SVN HEAD |
| Keywords: | validation upload data | Cc: |
Description
After upload validation library returned only uploaded_path, so we don't have very important data such as: - file name - type - file size etc.
Please look at http://codeigniter.com/user_guide/libraries/file_uploading.html on $this->upload->data()section:
Array
(
[file_name] => mypic.jpg
[file_type] => image/jpeg
[file_path] => /path/to/your/upload/
[full_path] => /path/to/your/upload/jpg.jpg
[raw_name] => mypic
[orig_name] => mypic.jpg
[file_ext] => .jpg
[file_size] => 22.2
[is_image] => 1
[image_width] => 800
[image_height] => 600
[image_type] => jpeg
[image_size_str] => width="800" height="200"
)
Change History
Note: See
TracTickets for help on using
tickets.
