Fileservice.ashx unknown file type

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
10/31/2014 4:21:24 AM
Gravatar
Total Posts 118

Fileservice.ashx unknown file type

Hi, I've not long upgraded to 2.4.0.4 MSSQL running .net 4.5. 

I get the following error each time I try to upload a document or image with any file extension.

"Do you want to save this file, or find a program online to open it?

Name: FileService.ashx

Unknown File Type, 189 bytes

From: domain address

Find, Save or Cancel"

This only happens in Internet Explorer, it's fine in Chrome. 

10/31/2014 8:31:00 AM
Gravatar
Total Posts 18439

Re: Fileservice.ashx unknown file type

you get that trying to upload? It looks more like a strange download error.

Can you reproduce the problem on our demo site?

Does changing the skin affect the problem?

You are using IE 11 and not using any old compatibility mode?

10/31/2014 9:25:29 AM
Gravatar
Total Posts 118

Re: Fileservice.ashx unknown file type

Hi Joe, 

This is an intranet. As we have critical systems (national) which rely on the use of Internet Explorer 8, that's installed across the board.

Unfortunately the demo site skin doesn't work in IE8, so I can't test an upload.

I upgraded to the latest version to get form wizard pro to work, but I guess I'm between a rock and hard place now? 

10/31/2014 9:33:30 AM
Gravatar
Total Posts 18439

Re: Fileservice.ashx unknown file type

our file uploader depends on html 5 which is not fully supported by IE 8. If most of your users use that I think I would try adding this in user.config

<add key="ForceLegacyFileUpload" value="true" />

then touch web.config to make sure it sees that setting.

It should degrade to a more traditional upload with input type=file and one at a time file uploads without drag and drop and without use of the fille service url

Hope that helps,

Joe

10/31/2014 9:43:58 AM
Gravatar
Total Posts 118

Re: Fileservice.ashx unknown file type

That's done it thanks Joe. I think the Microsoft support for IE8 ends in around 15 months so something might change. We're a v.large organisation so it's not something I can control. 

11/4/2014 7:32:16 AM
Gravatar
Total Posts 118

Re: Fileservice.ashx unknown file type

Hi Joe,

Since doing this the shared files module has stopped working, when uploading the screen just refreshes. Any way around this? 

11/4/2014 7:48:29 AM
Gravatar
Total Posts 118

Re: Fileservice.ashx unknown file type

Hi Joe,

Since doing this the shared files module has stopped working, when uploading the screen just refreshes. Any way around this? 

11/5/2014 2:14:28 PM
Gravatar
Total Posts 18439

Re: Fileservice.ashx unknown file type

Hi,

I just looked into this issue and have fixed it in my copy so it will be fixed in the next release.

In the meantime there is a workaround that also solves in my test.

If you edit the file with a text editor /SharedFiles/SharedFilesModule.ascx

look for this:

<portal:jQueryFileUpload ID="uploader" runat="server" />
 <portal:mojoButton ID="btnUpload2" runat="server" Text="Upload" OnClick="btnUpload_Click" EnableViewState="false" />

currently it is inside an updatepanel, but this kind of file upload can only work with full postback not with ajaxpostback of the updatepanel.

So you need to move it from where it is to below the closing tag of the updatepanel.

</asp:UpdatePanel>  

Hope that helps,

Joe

 

11/11/2014 6:37:59 AM
Gravatar
Total Posts 118

Re: Fileservice.ashx unknown file type

that's great, thanks.
You must sign in to post in the forums. This thread is closed to new posts.