attaching a file for download in Confluence 4.0

I want to create a download link for a source code snippet. I'm doing this:

Edit > Insert > Attachment > Choose File > Save

but I'd prefer to be able to edit the link text. Is there any way to do that outside of using wiki markup?

2 answers

1 accepted

This widget could not be displayed.

Sorry for last answer, was doing it blind.

Just tried on my 4.0.5 install and I can Edit -> Insert -> Attachment -> Choose File and there's a "Link Text" field for entering custom link text at the bottom of the insert dialogue before hitting Save.

Which is better than my last answer :)

I have a Link Text at the bottom of the Edit Link dialog, but to make it editable I have to go through that kludgy workaround I posted.

Just tried again and I think I know what you mean now.

If you're attaching a file for the first time and select Edit (as in edit the page, not edit on an existing attachment in the editor) -> Insert -> Attachment -> Choose File the Link Text box should be editable so you can enter the required text from the first insert and don't have to go through the upload -> delete -> insert -> search loop.

If you click on Ediit on an existing linked attachment in the editor then the Link Text field is uneditable, which seems like a UI oversight to me. I can't see an existing ticket for this behaviour so I'll raise one with Atlassian.

If you've got existing links to attachments that you need to edit the only other way I can think of is, in the editor, delete the link to the attachment, press "[" to trigger autocomplete, use down arrows to select search, start typing the name of the attachment and enter text in the Link Text field before hitting save. Potentially faster than deleting and inserting via the Insert menu as you can do everything from the keyboard, but not much better.

EDIT: Logged with Atlassian as https://jira.atlassian.com/browse/CONF-24017

The "Link Text" field was editable today. Seems like maybe there's a bug but I don't know how to duplicate it.

This widget could not be displayed.
Hi Robert, you can edit the link text using the Link Browser (http://confluence.atlassian.com/display/DOC/Linking+to+Attachments#LinkingtoAttachments-AddingaLinkusingtheLinkBrowser) if that helps? Andrew

Hmm, kludgy but possible. I have to upload the file, delete that link, insert a new link, search for and select the file, and then I can edit the link text.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

280 views 2 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you