How one can display the file path once it is successfully uploaded How one can display the file path in node/add page, once it is successfully uploaded, before saving the node.
Please try below: file_create_url($file->uri)

function import_form_submit(&amp;$form, &amp;$form_state) {
  // Load the file.
  $file = file_load($form_state['values']['file_fid']);
  // Change status to permanent.
  $file-&gt;status = FILE_STATUS_PERMANENT;
  // Save.
  $uploaded = file_save($file);
  if ($uploaded == TRUE) {
    drupal_set_message(t('The file has been uploaded.'));
    dpm(file_create_url($file-&gt;uri));
  }
  else {
    drupal_set_message(t('The file could not be uploaded. Please contact the site administrator.'), 'error');
  }

}


Also, refer the answer for pre-node save function