Ticket #336 (closed Feature Request: wontfix)

Opened 10 months ago

Last modified 10 months ago

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

follow-up: ↓ 2   Changed 10 months ago by Shadowhand

  • keywords validation upload data added

All of that information can be gathered with a few quick PHP commands, and not everyone will need all of that information.

in reply to: ↑ 1   Changed 10 months ago by nrm

Replying to Shadowhand:

All of that information can be gathered with a few quick PHP commands, and not everyone will need all of that information.

yes, i know that but you need first to write them (functions to get this informations) and in validation lib most of them already exist so why don't do this? ;)

  Changed 10 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to wontfix

Because each input it expected to have a single string value, unless it's an array-type input.

Please don't open this ticket or a duplicate (see #205). Thanks.

Note: See TracTickets for help on using tickets.