Recent Changes - Search:

add Test page

hide

Test


hide

Topics

show

Changed

Visitor's book Site map pmwiki-2.3.32

Upload Name Chars

MessagesReplacement version 2024-04-10new

Adding to valid file name characters


Config file says

$EnableUpload = 1; # enable file uploads
$EnableDirectDownload= 0; # protect attachments
$EnableUploadVersions = 1; # Keep previous versions
$UploadNameChars = "-\w. !=+#"; # allow exclamations, equals, plus, and hash
Attempt to upload and download these files
Attach:File#1.txt"doesn't work"

Attach:File=2.txt"works"

Attach:File!3.txt"works"

Attach:File+4.txt"doesn't work"

File#1.txt"doesn't work"

File=2.txt"works"

File!3.txt"works"

File+4.txt"doesn't work"

Attempt to upload and download these files
Attach:Image#1.gif"doesn't work"

Attach:Image=2.gif"works"

Attach:Image!3.gif"works"

Attach:Image+4.gif"doesn't work"
doesn't work
works
works
doesn't work

See also


file namesize (bytes)refslast modifiedMIME type
total 8 files4.9K2016 Apr 02 17:59
File!3.txt 8.01
Referring pages:
2016 Apr 02 17:59text/plain
File#1.txt 8.01
Referring pages:
2016 Apr 02 17:59text/plain
File+4.txt 8.01
Referring pages:
2016 Apr 02 17:59text/plain
File=2.txt 8.01
Referring pages:
2016 Apr 02 17:59text/plain
Image!3.gif 1.2K1
Referring pages:
2012 May 22 21:34image/gif
Image#1.gif 1.2K1
Referring pages:
2012 May 22 21:32image/gif
Image+4.gif 1.2K1
Referring pages:
2012 May 22 21:34image/gif
Image=2.gif 1.2K1
Referring pages:
2008 Sept 04 10:09image/gif

tahi Page last modified on 2012 May 22 21:54

Edit - History - Recent Changes - WikiHelp - Search - file name characters -> mailto:?Subject="KiwiWiki: Upload Name Chars"&Body="From KiwiWiki: Upload Name Chars (https://kiwiwiki [period] nz/Test/UploadNameChars) - Adding to valid [[PmWiki:UploadVariables#UploadNameChars" | email page as link ]]