(no commit message)
[ikiwiki.git] / doc / bugs / attachment_upload_does_not_work_for_windows_clients.mdwn
1 It seems as if windows clients (IE) submit filenames with backslash as directory separator.
2 (no surprise :-).
3
4 But the attachment plugin translates these backslashes to underscore, making the
5 whole path a filename.
6
7 This little hack fixed the backslash problem, although I wonder if that
8 really is the problem?
9 (Everything works perfectly from linux clients of course. :-)
10
11         sub basename ($) {
12                 my $file=shift;
13
14                 $file=~s!.*/+!!;
15                 $file=~s!.*\\+!!;
16                 return $file;
17         }
18
19 Should probably be `$file=~s!.*[/\\]+!!` :-)