#369: Improve some aspects of file handling
-------------------------+--------------------------------------------------
Reporter: david | Owner: david
Type: enhancement | Status: new
Priority: normal | Milestone: 0.11
Component: request | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
* Add support for files uploaded as array
* Add support for square bracket syntax when accessing files
* Always throw an exception in moveFile unless the file did not exist
* Idea behind that: an error will raise an exception, while the case
where the file doesn't exist just returns "false". Easier to handle this
way
* Also throw exception when chmods or moving itself fails.
* Allow "deep" retrieval of file field names and files themselves, where
array files are included, too, with their HTML field name as the key (e.g.
{{{array('bar' => array(...), 'foo[one]' => array(...), 'foo[two]' =>
array(...))}}})
* '''BREAKING CHANGE''': currently, {{{getFileName()}}} returns the name
of the file ''on the remote computer'', whereas {{{getFileNames()}}}
returns an array of html field names, which is inconsistent. Therefor,
rename that method to {{{getFileFieldNames()}}}. To restore previous
behavior, replace {{{getFileNames()}}} with
{{{getFileFieldNames(false)}}}.
--
Ticket URL: <http://trac.agavi.org/ticket/369>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets