El 01/06/2007, a las 15:31, dardosordi escribió:
> Hope it helps. > It's all there, just read the code. I've just found the problem. As said, model->data is empty until Save. I was trying to access some data from the upload before it was available to the model. Solution: move all logic related to model->data to the beforeSave method (or where it belongs). My logic involves some "autorouting" of the files depending on mime- type, and a "mode" option to store references to the file ior the content of the file itself n the model . File Upload model is also in the To Do list for my project. Thank you. -- Fran Iglesias [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
