SID-01415: Can't upload attachments with IE
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
5.8.8 |
| Category: |
CategoryAttachments |
Server OS: |
AIX 5.3 |
Last update: |
13 years ago |
We just installed TWiki 5.1.1 at our site and uploading attachments isn't working from IE. It does work from Firefox (Windows or Linux). There's no error reported to the user, the attachment just doesn't show up in the topic. This error shows up in the server logs:
[Mon Feb 27 11:31:25 2012] [error] [client <deleted>] [Mon Feb 27 11:31:25 2012] upload: Use of uninitialized value in concatenation (.) or string at /local/web/twiki5/lib/TWiki/UI/Upload.pm line 423., referer: http://<deleted>/twiki/bin/attach/Develop/DevWikiTest
This is the code it refers to:
# generate a message useful for those calling this script from the command line
my $message =
($doPropsOnly) ? 'properties changed' : "$fileNames[0] uploaded";
I'm assuming
@fileNames
is empty for some reason. Anyone else encountered this and have a solution/workaround?
--
BrentJackson - 2012-02-27
Discussion and Answer
FYI, I got rid of the error by changing the code to this:
# generate a message useful for those calling this script from the command line
my $message_file_name = $fileNames[0] ? $fileNames[0] : '???';
my $message =
($doPropsOnly) ? 'properties changed' : "$message_file_name uploaded";
It doesn't solve the original problem, though. You still can't upload attachments with IE.
--
BrentJackson - 2012-02-27
I am also facing the same problem with IE
--
HarshBafna - 2012-03-02
I filed
TWikibug:Item6854
to track this. Please add detail on that bug topic.
Related support items:
SID-01418,
SID-01417
--
PeterThoeny - 2012-03-02
This is now fixed, with patch, see
TWikibug:Item6854
.
--
PeterThoeny - 2012-04-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.