AttachWithSpaces

Attachments and images with spaces in the file name


Attachments

* Attach:somefile.txt (unspaced)
* Attach:some file.txt (spaced)
* Attach:[=some file.txt=] (escaped)

* [[Attach:somefile.txt]] (unspaced as link)
* [[Attach:some file.txt]] (spaced as link)
* [[Attach:[=some file.txt=]]] (escaped as link)

* Attach:"some file.txt" (spaced quoted)
* [[Attach:"some file.txt"]] (spaced quoted as link)

Images Attachments

* Attach:somefile.gif
* Attach:some file.gif
* Attach:[=some file.gif=]

* [[Attach:somefile.gif]]
* [[Attach:some file.gif]]
* [[Attach:[=some file.gif=]]]

* Attach:"some file.gif"

Attachments and variables

:myPTVunspaced:somefile.txt
:myPTVspaced:some file.txt

* Attach:{$:myPTVunspaced}
* Attach:{$:myPTVspaced}
* [[Attach:{$:myPTVunspaced}]]
* [[Attach:{$:myPTVspaced}]]
* [[Attach:{$:myPTVunspaced} | text]]
* [[Attach:{$:myPTVspaced} | text]]
* [[Attach:{$:myPTVunspaced} | Attach:{$:myPTVunspaced}]]
* [[Attach:{$:myPTVspaced} | Attach:{$:myPTVspaced}]]
myPTVunspaced
somefile.txt
myPTVspaced
some file.txt

Attachments in page variables

gifPTVspaced:some file.gif
gifPTVspacedvariant:[=some file.gif=]

* {$:gifPTVspaced}
* {$FullName}/{$:gifPTVspaced}

* Attach:{$:gifPTVspaced}

* Attach:[={$:gifPTVspaced}=]
* [[{$FullName}/{$:gifPTVspaced}]]

* [[Attach:{$:gifPTVspaced}]]
* [[Attach:{$:gifPTVspaced} | Attach:{$:gifPTVspaced}]]

* Attach:some%20file.gif
* Attach:{$:gifPTVspacedvariant}

gifPTVspaced:some file.gif gifPTVspacedvariant:some file.gif

Peak memory: 1,518,448 bytes