(no commit message)
authorjhagg <jhagg@web>
Wed, 16 Jun 2010 13:40:29 +0000 (13:40 +0000)
committerJoey Hess <joey@finch.kitenet.net>
Wed, 16 Jun 2010 13:40:29 +0000 (13:40 +0000)
doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn b/doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn
new file mode 100644 (file)
index 0000000..de57a14
--- /dev/null
@@ -0,0 +1,19 @@
+It seems as if windows clients (IE) submit filenames with backslash as directory separator.
+(no surprise :-).
+
+But the attachment plugin translates these backslashes to underscore, making the
+whole path a filename.
+
+This little hack fixed the backslash problem, although I wonder if that
+really is the problem?
+(Everything works perfectly from linux clients of course. :-)
+
+       sub basename ($) {
+               my $file=shift;
+
+               $file=~s!.*/+!!;
+               $file=~s!.*\\+!!;
+               return $file;
+       }
+
+Should probably be `$file=~s!.*[/\\]+!!` :-)