+ 1 for this idea. Exactly how it should be done. Ditto for images. Image resizing / format changes etc can also be done using values passed to Form API. Modules should be free of this type of code. I've done all this stuff before so am happy to contribute it if the need be there. -- Sammy Spets Synerger Pty Ltd http://www.synerger.com/ On 11-May-06 05:42, Adrian Rossouw wrote:
On 10 May 2006, at 6:50 PM, Dries Buytaert wrote:
I second that. Core's file handling, both the file API and the upload.module need love.
Perhaps what we need is proper FAPI'sation of the file api. So that just putting a file field on a form, automatically saves it. Free the developer from every having to call any of the file_ functions.
Also, moving the upload ajax stuff out of the upload module, and into the file element, so that all file elements get to do that.
-- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com