SharedFiles: Download problem with non-english file name

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.
5/27/2009 10:45:21 AM
Gravatar
Total Posts 4
Wonderful mojoPortal in mojoPortal

SharedFiles: Download problem with non-english file name

Server: Win Server 2003 (ENG)
DataBase: MySQL
MojoPortal: 2.2.9.5

Hi Joe,

I am a overseas mojoPortal user.

I really appreciate your great contribution on powerful mojoPortal,

especially you work for further developing upgrade version frequently and reply your mojoPortal kindly.

Recently,

I found some problems on my mojoportal site when using the sharedFiles module.

I am using Traditional Chinese for the name of the uploaded files.

However, it doesnt run the download after clicking to download, as the name was in Chinese Characters.

This is the pages which I am facing the problem
http://www.mossjss.edu.hk/0110_SchDevelopment.aspx

I trid to fix this problem out...and I find this site...which provide a solution by editing the source file.
http://www.cnblogs.com/wenjie/archive/2009/02/12/1389428.html

-------------------------------------------------------
private static string UTF_FileName(string filename)
{
return HttpUtility.UrlEncode(filename, System.Text.Encoding.UTF8);
}

.....

Page.Response.AddHeader("Content-Disposition", "filename=" + UTF_FileName(sharedFile.FriendlyName))

.....
--------------------------------------------------------

As I dont know programming...
I hope you can help me....and look forward fo rnext mojoPortal upgrade version.

Many Thanks.

Matthew,
mojoPortal's fan from Hong Kong

5/27/2009 11:07:15 AM
Gravatar
Total Posts 18439

Re: SharedFiles: Download problem with non-english file name

Hi Mathew,

Thanks for pointing out this issue and the solution. I will make this change right now so it will work for you in the next release.

Best,

Joe 

6/18/2009 1:03:08 AM
Gravatar
Total Posts 4
Wonderful mojoPortal in mojoPortal

Re: SharedFiles: Download problem with non-english file name

Hi Joe,

Thanks for your mojoportal 2.3.0.8 fixed the problem.

Now, I can download the file with non-English character in FriednlyName.

A minor problem when I click the file to download, it will load the _parent and _blank page together.

Thats, there will two download boxes, or it may directly open the file with placing the mojoPortal page if the file is PDF.

I don't know whether is it my IE browser problem or not.

 ------------------

BTW,

when I upgrade my mojoPortal from 2.3.0.4 to 2.3.0.8.

it showed this error message when upload file thr the SharedFiles
--------------------------------------
MySql.Data.MySqlClient.MySqlException: Field 'DocName' doesn't have a default value
--------------------------------------

This field is used for...?

 I simple edited the field in table...and it is ok right now.

 

Anyway, thanks again for v2.3.0.8 fixed the problem I pointed before.

And the new Content Catalog search feature is very nice.

 

Matthew

 

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