Java and Text files

Java and Text files

by Lauren Fee -
Number of replies: 3
Hi, I have a faculty member who has uploaded a .txt file with java code in it. The problem is each time the students click on the file to download it, it pops up in a new window. When you right click on it and save it as text, it loses the formatting or adds some weird html code around it. She wants the students to be able to download it in it original format as a simple .txt so the student can use the code for compiling.  I have tried it in I.E. Firefox and Safari. All do something similar.

Any suggestions would be helpful. Thanks!
Average of ratings: -
In reply to Lauren Fee

Re: Java and Text files

by Art Lader -
Hi, Lauren,

Just off the top of my head, putting the text file inside a textarea or an an iframe might quickly and easily solve the problem. Might not be the most elegant solution, but could/should work.



Someone else will probably have a better solution, though.

-- Art
In reply to Lauren Fee

Re: Java and Text files

by Kevin TREUSSIER -

Hi,

We have the same problem in france...

In "Administration » Configuration » Filters" set "Filter uploaded files:" to "no" and then it's OK.

Kevin