getting uploaded file name at node title Users will upload files.  The user will tag the file with a project name and some keywords and an optional text comment.  I have made a content-type called 'image', that has filed for title, file, project, keywords and comments.

I want the tile of the node to be the name of the uploaded file.  The name of the filed is 'file' the field is of type File, the widget is of type File, and the filed name is field_file.  I have the token module and the "Automatic Nodetitles" module.  The token module gives me token "node:field_file_body", this is not the file name.  

How do I set the title of the each "image" node to the name of the uploaded file?
I also battled with this; this is my solution:

Use the Automatic Nodetitles Module as described by the others, and in the Pattern for the title text box load up the filefield and extract the filename that way. Example:

&lt;?php
//Load the file
$file = file_load($node-&gt;field_document['und'][0]['fid']);

// Filename
return $file-&gt;filename;
?&gt;


Obviously you need to check the Evaluate PHP in pattern. checkbox at the bottom for this to work, and replace "field_document" with the name of your own file field.

Hope this helps somebody!