Well, I've kind of solved this myself, but with the previous help of user 'pop' - thanks, pop.
As previously mentioned, the form code for uploading a file is:
fieldset
file "Upload file" !
In my usage, I actually want three upload functions, so the code is:
fieldset
file "Upload file 1" !
file "Upload file 2" !
file "Upload file 3" !
This produces three upload 'buttons' if you like to call them that (browse for the file you want to upload and then submit it). All good, and in use the file(s) get uploaded to the media folder.
After a lot of experimentation, I found this was the necessary code to use in the template in order to display a link to the uploaded file - in my case I need lines for, potentially, 3 uploaded files:
**Attachment:** {{@@Upload file 1@@?linkonly}}\\
**Attachment:** {{@@Upload file 2@@?linkonly}}\\
**Attachment:** {{@@Upload file 3@@?linkonly}}\\
That works fine if you select and upload a file. If, however, you only wanted to upload one file, but your form has three upload buttons, that means two upload functions are not utilised. But they are still part of the template code. This results in a rather ugly 'null' link in the form of a typical wiki link to a page not yet created. (see image)
It's understandable why this happens, I guess, but it's just not what you really want to see! I experimented with putting..
|none
..in various locations inside and outside the link, but could never get a satisfactory result. For the timebeing I'll live with the ugly null links, but if anyone (author?) knows of a better, cleaner way of not displaying links where no file has been uploaded, I'd love to know.
Hope this helps others.
Hugh