New file uploader and IE9

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/3/2013 1:06:52 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

New file uploader and IE9

Hi Joe, this weekend I finally got us caught up and we are now running mojoPortal at revision 5326. 

Unfortunately I had a miscommunication about testing with our group that uses the Shared Files module, and today they've found some issues using it with Internet Explorer 9. Specifically: they are not able to drag and drop onto the browser window (it ignores the drop), nor can they multiselect files for upload in the browse window (this is the bigger problem for them). When we try using it with IE 10, everything is perfect.

Are these known issues with IE9, and can they be fixed? We should be able to upgrade workstations to IE10 if necessary, but there are a lot of them to do, so we hope to work around this problem on the web server side for now, if possible.

Thanks!

Jamie

9/3/2013 1:30:52 PM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Jamie,

That is correct, in replacing NeatUpload we are relying on modern web browser html 5 support for drag and drop, multi file selection and upload progress. IE 9 does not have adequate html 5 support for drag and drop nor multi file selection, those features were added in IE 10.

Older browsers are limited to one at a time file selection and upload.

While NeatUpload did support multi file selection and upload progress in older browsers, it only worked in full trust hosting and it used flash for the multi file selection which caused problems in some browsers. So the tradeoff removed all concerns for medium trust, removed the use of flash, and eliminated the need for a complex http module server side.

So, rolling out IE 10 is really the only solution to get the drag and drop and multi file selection and upload progress, other than Chrome or Firefox.

Best,

Joe

9/3/2013 1:38:41 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: New file uploader and IE9

Thanks for the explanation Joe, that really cleared it up for me.

Jamie

10/21/2013 1:58:18 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Is there a way to disable the drag and drop feature? In our University environment, our Site Editors are all using IE 9 and having the drag and drop area that doesn't work will be confusing to them.

Thanks,

Beth

10/22/2013 1:55:08 PM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Beth,

Yes, if you add this in the theme.skin file of your skin it should hide the drop zone

<portal:jQueryFileUpload runat="server"
    UseDropZone="false"
/>

Hope that helps,

Joe

1/30/2014 1:16:42 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Hi Joe,

I applied the control to my theme.skin file in version 2.3.9.9 but now that I've upgraded to 2.4.0.2 (the control is still present in the theme.skin) the drag and drop functionality is present in the ckeditor file uploader.  This is problematic because in IE 9 not only does the drag and drop feature not work, but the overall functionality is impaired (when you upload a file the file manager doesn't refresh itself to indicate that the file was, in fact, uploaded).

Is there an additional step I've missed for disabling the drag and drop functionality in the file manager?

Thanks,

Beth

1/30/2014 1:53:32 PM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Beth,

In previous versions we did not have the drop zone enabled in the editor file dialog, we added that in this version but there is a config setting you can use to turn it off from user.config:

<add key="FileDialogEnableDragDrop" value="false"/>

The theme setting works in pages where the skin and theme are applied but the file dialog page does not use any theme so its a separate setting there.

Hope that helps,

Joe

1/30/2014 3:33:27 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Thanks Joe, updating the user.config as you suggested removed the Drag and Drop functionality for my mojo sites.  Unfortunately the behavior I mentioned in the previous post where in IE 9 CKeditor when I upload a file the dialog does not refresh to indicate that the upload was successful.  What is strange is that I'm unable to trigger an application error or a javascript error in the IE console.  I still have a working version of 2.3.9.9 to refer to (although it's no longer our 'live' version our users are utilizing) and the CKeditor file manager works as expected in IE 9.  I'm running the same versions of JQuery (1.9.1) and JQUI (1.10.12) in both mojo releases. I rolled back to the CKeditor from 2.3.9.9 (CKEditor v 421 down from v 431) to see if there was an incompatibility with the newest version and it seems to have made no difference.

I know this much:

  • JQuery versions are the same
  • Rolling back CKeditor to the last known working version made no difference
  • Updating the jqfileupload libraries to the newest versions made no difference
  • This problem is reproducible in IE9, mojo version 2.4.0.2 but not in 2.3.9.9
  • I have not been able to trigger a client or server-side error

Can you think of anything that I may have overlooked?

Thanks,

Beth

1/31/2014 10:23:29 AM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Beth,

Can you produce the problem on our demo site? When I try IE 11 using IE 9 emulation on our demo site it seems to work ok but I don't have a real IE 9 client.

The editor version should not affect it, I would use the newest one, the file dialog page is its own thing it is not part of the editor it just invoked from there.

Thanks,

Joe

1/31/2014 10:33:34 AM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Hi Joe,

Great idea. I just tried it on your demo site and it reproducing the same behavior in IE 9. Let me know if you want a screenshot.

~ Beth

1/31/2014 10:48:28 AM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Beth,
 
I just emailed you a patched version of mojoPortal.Web.dll version 2.4.0.2 that has a new setting to force disabling the jquery file uploader so that it will use the standard .net file upload posting back to the page instead of the service url.
 
Add this to user.config then deploy the dll and it should go back to standard asp.net file upload functionality.
 <add key="ForceLegacyFileUpload" value="true"/>
 
Hope that helps,
 
Joe
1/31/2014 12:34:11 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Hi Joe,

Thanks; I applied the dll and updated the user.config. I does resolve the issue with the with the file uploader in IE 9.  I'm using ASP.NET TreeView for my navigation items and your dll is rendering the menu as table items, which is upsetting the display of the sites.  Can you send me a dll that works with TreeView?

Thank you!

~ Beth

1/31/2014 1:22:54 PM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Beth,

I can assure you that nothing in that dll changed asp.net treeview nor mojoTreeView which is used by <portal:SiteMenu and <portal:PageMenu. In fact there have been no changes to mojoTreeView in over 16 months according to revision history of the repository.

I suggest check your error log for other clues about the cause of that problem, I do not see how it could be related to the dll I sent you. 

I did send you the .NET 4 version of the dll and assume you are using .NET 4 or higher and not .NET 3.5. I don't think this dll would even load under .NET 3.5.

Best,

Joe

1/31/2014 2:20:07 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Hi Joe,

I took a copy of my live deployment, replaced my dll with the new one you provided, added the new setting to the user.config and touched the web.config, at which point the SiteMenu and PageMenus both loaded as html tables instead of unordered lists. When I removed the dll you provided and replaced with with the dll that had compiled with the full source code, the site returned to it's normal display of <ul><li> tags. There have not been any errors in the log.

~ Beth

1/31/2014 2:41:02 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Also I'm running on 4.0. Since I have the full source code, you could tell me which files you affected and I can pull them down and redeploy. I'd rather not if we can resolve the issue with a dll, but am willing to if we can't get to the bottom of the menu changes.

Thanks,

Beth

1/31/2014 2:52:58 PM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Hi Beth,

Sorry but I have no explanation for that and am not able to reproduce that problem. I just did a clean install of mojoPortal 2.4.0.2 then added the skin art31-green from our extra skins which is an older one that I know uses treeview. Then I downloaded the zip I sent you from my sent mail extracted it and deployed it to this installation and nothing changed in the menu.

I've also deployed it to the demo site but the demo site doesn't have any skins using TreeView, all newer skins use FlexMenu, so I uploaded the art31-green skin to the demo site and it works fine with TreeView.

I keep a copy of the source code exactly as it is for each release and the changes to add the option to disable the file uploaded were applied directly to only 2 files WebConfigSettings.cs and jQueryFileUpload.cs and re-compiled to create the patched dll I sent. There were no other changes and definitely no changes to any treeview control in over 18 months much less in this patched version.

Best,

Joe

1/31/2014 3:00:58 PM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

You can see the source code history here, but note that there have been multiple changes in the repository since the 2.4.0.2 release, the dll I sent you was not compiled form the latest code in the repository it was compiled from a copy of the 2.4.0.2 source code patched only with the changes for this new setting. Those changes were also applied to the repository in this changeset, but there are other changes as well in the repository such as an upgrade to a newer version of TinyMCE.

Its up to you if you want to build and deploy your own source code from the repository. If you deployed the official 2.4.0.2 release then the patched dll should work fine. If your current deployment was made yourself from source code then it might be a good idea to build again with the latest code since you may be running a version newer or older build than the official 2.4.0.2 package.

Best,

Joe

1/31/2014 4:05:49 PM
Gravatar
Total Posts 130

Re: New file uploader and IE9

Hey Joe,

I looked at the history link you sent and applied the changes to those two files. Built fine and it's working locally in IE :-)

At this point I won't be redeploying to the server until Monday morning but I think I have my fix.

Thanks very much for working it out with me.

~ Beth

6/6/2014 10:06:43 AM
Gravatar
Total Posts 19

Re: New file uploader and IE9

Hey Joe,

I have been running into a problem similar to this. We have upgraded to MojoPortal 2.4.0.2 and still have some users who run IE9. They are finding that when they upload a file though the editor, the browser prompts the user to open or save 'FileService.js' clicking open will finish uploading the file though the page never refreshes to show that the upload finished. 

 

Would this require the same fix that Beth used?

 

Thanks,

Nicholas

6/6/2014 11:21:44 AM
Gravatar
Total Posts 18439

Re: New file uploader and IE9

Its up to you, if most of your users have IE 9 you could use the same solution to disable the jquery file uploader and use the old school file upload. At this point to do that you would need to upgrade to mojoPortal 2.4.0.3 in order to get the change that is needed to disable it.

6/13/2014 10:40:43 AM
Gravatar
Total Posts 23

Re: New file uploader and IE9

Hope you don't mind me adding in an observation here. I've had to add the user.config option  <add key="ForceLegacyFileUpload" value="true"/> to allow file uploads for all browsers on my https secure site.

Yesterday I moved from 2.3.9.8 to 2.4.0.3 one of my servers which runs a single instance site but with https settings and the new drag and drop feature wasn't working  - in the following way:

Press on link or image and then browser server to load File Browser. Press on choose file, select file, choose - would return and view which did not contain the file name of file and no upload button was visible, so all users were then stuck. 

Where as with ForceLegacyFileUpload = true - the filename would appear and the upload button would function. 

This was independent of using CKeditor or TinyMCE, which would be expected as mentioned above the File Browser feature is separate. 

I have other servers running mojoportal and not https and they are working fine with nice new the drag and drop feature. 

Thanks, Karl

You must sign in to post in the forums. This thread is closed to new posts.