Forum LAMS for Tech-Heads - General Forum: Re: Microsoft Office files open as .zip files


 
Search: 

2: Re: Microsoft Office files open as .zip files
In response to 1 01/07/11 11:17 AM
[ Reply | Forward ]
Hi Ian,

I think you are on the right path with the FCKConfig.LinkUploadAllowedExtensions. Adding the file extensions there should do the trick.

However, I think it might be that your browser has cache that file. Can you clear your browser cache and try again?

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Microsoft Office files open as .zip files
In response to 2 01/10/11 09:14 AM
[ Reply | Forward ]
Hi Ernie

Office 2007 files still open as .zip. We have tried:
1) Clearing Browser Caches
2) Restarting server
3) Adding / modifying a MIME type for JBOSS as seen below - web.xml file and server restarted.

.docx = application/vnd.openxmlformats-
officedocument.wordprocessingml.document


Then I tried linking to a .docx document in the lesson.lams site (http://lessonlams.com/) and it opened into Microsoft Word 2007 no problem!

However, here's the interesting (!) bit. I addded a .docx link in a Noticeboard activity on the LAMS demo site (http://demo.lamscommunity.org/ - demo group 43 "Test_Delete sequence) and it opened as a zip file!

Any thoughts?

Ian Davis

Posted by Ian Davis

4: Re: Re: Re: Microsoft Office files open as .zip files
In response to 3 01/10/11 09:40 AM
[ Reply | Forward ]
Hi Ian,

I've just added the docx and xlsx to the FCKConfig.LinkUploadAllowedExtensions in http://demo.lamscommunity.org/lams and I was able to upload a file and it all worked well.

See the steps I've taken:

1) Created a sequences with one Noticeboard in which, I added a docx file (see fckeditor_docx_1.png)

2) Run the lesson and click on the link to get the docx file (fckeditor_docx_2.png)

3) The docx file is being downloaded as a docx file rather than a zip. (see fckeditor_docx_3.png)

Attached you can find the exported sequence.

Is this what you are attempting to do, right?

Thanks,

Ernie

Posted by Ernie Ghiglione

Attachments:
5: Re: Re: Re: Microsoft Office files open as .zip files
In response to 3 01/10/11 09:57 AM
[ Reply | Forward ]
Hi Ian,

I tested this on Windows with IE and I think I can see where the confusion might be...

When launching the lesson as learner (Win_docx_file_1.png), and clicking on the link, I get the file as if it would be a zip file (see Win_docx_file_2.png). However, in the folder where I save it, it does display properly as a .docx file (Win_docx_file_3.png)

Is this the issue you are having?

Ernie

Posted by Ernie Ghiglione

Attachments:
Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum