Dashboard > Atlassian Plugins > ... > Macros > attachment-data
  Atlassian Plugins Log In | Sign Up   View a printable version of the current page.  
  attachment-data

Added by David Chui , last edited by David Peterson on Sep 03, 2007  (view change)
Labels: 

{attachment-data}

Plugin: Scaffolding Plugin, from version 2.3-dr6

A macro which allows the user to select or upload an attachment.

Usage

{attachment-data:Name|include=<regular expression>|exclude=<regular expression>}

Parameters

Name Required Default Description
[default]/key
The name or key of the data field.
include
Only include file names which match the specified regular expression.
exclude
Exclude any file names which match the specified regular expression.

See Also

Hi David,

Having some trouble working with the scaffolding macro.

I'm trying to create a scaffold that will allow the user to upload or select a .swf file, enter the height and width parameters, and then display the file.

So far I have tried:

Wink Filename: {text-data:filename|type=line|content=text|width=80%|required=true}.swf filename{text-data}

and then used {get-data} to pull the filename into code like this: !{get-data:name=filename}|!, but this results in the error:

Unable to render embedded object: File (effectivelearning.swf) not found.

I have also tried:

{attachment-data:wink} and then !{get-data:name=wink}!
but the same problem occurs.

If I use {get-data:name=filename} on its own, outside of an embed tag, it renders normally - for some reason the macro passes to the ! ... ! with the contents in brackets.

Any way I can work around this problem?

Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators