Question
One of pages contains some jarfile attachments.
If a user tries to download one of these from the attachment area (the url would be something like)
http....myWeb/myTopic?rev=1;filename=myjar.jar
then the downloaded file is 'Invalid or Corrupt'
The jar file though is in fact ok as later tests prove
How can I fix this?
There is an entry for jar in the mime.types file
Environment
--
PeterJones - 09 Jun 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Is the configure entry pointing to the right mime file? Try also to use the directly the pub URL, e.g. use
http://www.twiki.org/p/pub/MyWeb/MyTopic/myjar.jar= instead of
%SCRIPTURL{viewfile}%/MyWeb/MyTopic?rev=1;filename=myjar.jar
--
PeterThoeny - 09 Jun 2007
The config points to the mime file in twiki/data and this has the following entries.
application/java-archive jar
application/x-java-archive-diff jardiff
The users of the page (those who know of the problem) do as you have written above and they have made a link available in the page itself. This doesnt solve the attachement area problem though and does make the attachement entry for the jar file redundant, unless it is possible to change the way the attachments are made available by using your workaround instead of
http://www.twiki.org/cgi-bin/viewfile/MyWeb/MyTopic?rev=1;filename=myjar.jar
--
PeterJones - 11 Jun 2007
Sorry, closing this after more than 30 days of inactivity...
--
PeterThoeny - 10 Aug 2007