Hey all,

I would really be thankful for any tips as to what I might be doing
wrong.

I'm using Media plugin v. 0.60 with CakePHP 1.2.6 stable

Here's my setup: http://pastebin.com/QzsY6wNR

When I submit the media file, everything is okay. But if a file is not
submitted, i'm not getting the record inserted at all although all
validations return true.

As far as I've managed to debug execution flow of the add() action, it
all gets ruined around these lines:

plugins/media/model/behaviors/media.php:121:

                if (!$Model->exists()) {
                        if (!isset($Model->data[$Model->alias]['file'])) {
                                unset($Model->data[$Model->alias]);
                                return true;
                        }
                } else { ... }


This leads to having $this->data = array[0] after all behaviors'
callbacks have been executed


Am I failing to configure something so that new records do not depend
on the file being uploaded?

Thanks in advance!

Greetings,
Nasko

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to