I'm doing something hacky (I know... ) but planning to fix it later. First I just need it working.
In Upload.php, I'm trying to set the Filename of my upload before it's written to the database. It's currently being written incorrectly. For example, if I upload the file to:
It's written to the database as:
I'm attempting to add this line:
$this->file->setField('Filename', CORRECT VALUE AS A STRING);
... then write()
But it seems to be ignored or overwritten by an ancestor, perhaps DataObject??
In the API docs, it says the 2nd param can be mixed. Does this indicate that it should be an object or array instead of string?
I'm running beta1, but I've looked through trunk and it doesn't look like any of this has a bug in it.
Thanks for your advice!