As always, there are a few things to keep in mind:
- Multiple documents cannot share the same filename
- GW Drupal will append duplicate document names with '_x', where 'x' is a sequentially assigned number (ex: document_0.pdf, document_1.pdf, etc...)
- Once a document has been uploaded once, it is available across the website via File Browser and does not need to be uploaded again
- Whenever possible, do not include blank spaces in filenames as this can cause issues with some browsers when the document link is shared
Uploading & Linking to a Document
On the page where the document is needed:
- Type in contextual link text that will serve as the document link
- Ex: the document name or an action, such as "submit your application"
- Also, be sure to include the document type in parenthesis after your link text
- Ex: Document Name (PDF)
- Highlight your contextual link text
- Click on the link icon in the WYSIWYG menu
- The Link properties window will open
- Change the Link Type to URL
- Click on the Browse Server button
- File Browser will open
- Be sure that you're in the Downloads folder, and then click on the Upload button
- Click Choose File to locate the desired document on your computer
- Once found, double-click on the file or click the Open button
- The file name will be populated in File Browser's upload field
- Click the Upload button to upload the file to your GW Drupal website
You should see a confirmation message if it uploads successfully. You will see an error message if the upload fails.
Deleting a Document
- Click on your UserID in the upper right corner of the browser window
- You will be taken to your profile page
- Click on the File Browser tab
- Locate the document you'd like to delete
- Highlight the file and click the Delete icon in File Browser
You should see a confirmation message if it deletes successfully.
If you see the error message "File name is in use by another application", when you try to delete a document, this is not a bug but is a known issue with the Workbench Moderation module.
Workbench Moderation allows GW Drupal to store previous versions of a piece of content so that you can revert to it if necessary.
So, essentially, the file has been uploaded to a previously saved page or Promotion on the site. And then, at some point, that page or Promotion was edited and re-saved. GW Drupal has stored all previous versions of the page or Promotion, including images and documents, and will not allow these assets to be deleted unless those previous versions of the page or Promotion are also deleted (under the Moderate tab on the applicable page(s)).