When you upload an existing file, you get a "Select File Versioning Option" form. Some of our non-techie types have been confused by this. An easy way to help clarify why folks are seeing this is to add a #description to the webfm_version_form array.

Here's what my modified webfm.module webfm_version_form function looks like:

function webfm_version_form($filename) {
  $form['select'] = array(
    '#prefix' => '<div id="replace-options">',
    '#suffix' => '</div>',
    '#type' => 'radios',
    '#title' => t('Select File Versioning Option'),
    '#description' => t('A file with the same name has already been uploaded.  Please select how you want to handle with this.'),
    '#options' => array('Replace and rename original copy of '.$filename,'Replace and delete original copy of '.$filename,'Rename new copy of '.$filename,'Cancel'),
    '#required' => TRUE,
  );
CommentFileSizeAuthor
#1 webfm-859488-1.patch3.07 KBcgmonroe

Comments

cgmonroe’s picture

Title: Add Description to version form » Some Webfm Attachment GUI Improvements
StatusFileSize
new3.07 KB

Changing topic here because I'm adding another improvement to the Attachment display and supplying a patch for both.

The attached 6.12 version patch does the following:

1) Adds the #description item to the webfm_version_form

2) Modifies the JavaScript so that a "No files attached" message is displayed under the Attached Files headers. IMHO, this improves the usability and look of the WebFM attachments. This message is removed or added back in as files are attached or detached. This is set up to use the Drupal.t JavaScript function so it can be translated like the rest of the WebFM JavaScript messages.

nhck’s picture

Status: Active » Needs review
nhck’s picture

Status: Needs review » Fixed

Dear cgmonroe,

thank you for supporting webfm and submitting this patch. I have committed this to cvs. One side note: Please use diff -up next time otherwise its hard to tell which function it is :-)

Again: Many thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.