You can apply whatever naming convention you want when you copy the
uploaded "TEMPORARY FILE" to what the final destination will be. eg:

$tmp_file = $this->data['Gallery']['submitedfile']['tmp_name'];

/* you could create a helper that generates the filename */
$my_new_file = $this->Helper->generate_file_name_thingy(whatever args
you want: Id etc...);

/* copy the tmp_file to the new path/filename */
copy($tmp_file, FILES_DIR.DS.'photos'.DS.$my_new_file);

--~--~---------~--~----~------------~-------~--~----~
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