File Manager names uploaded files incorrectly

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.
8/10/2005 11:09:48 AM
Gravatar
Total Posts 45

File Manager names uploaded files incorrectly

When uploading files using the File Manager under the Admin menu, the uploaded file gets named the full pathname rather than just the basename of the file.

Example:  When I upload a file named "C:\temp\somefile.jpg" the file gets named "C:\temp\somefile.jpg" and not just "somefile.jpg".

I am using the SVN PostgreSQL version of mojoPortal and have not tried this with the other versions.

8/10/2005 12:34:57 PM
Gravatar
Total Posts 18439

Re: File Manager names uploaded files incorrectly

Yes I've seen this, but it only happens with IE not Firefox

I will look into it and see what I can find. I think I loked into this once before and could not produce the symptom on Windows but I can't remember for sure.
8/10/2005 12:46:21 PM
Gravatar
Total Posts 18439

Re: File Manager names uploaded files incorrectly

This looks like it might be a mono bug, the relevant code is
 
Path.GetFileName(file.FileName))

and Path.GetFileName is supposed to just get the file name without the path.
8/10/2005 1:29:51 PM
Gravatar
Total Posts 18439

Re: File Manager names uploaded files incorrectly

I can confirm that this does not occur on windows. I will test it on the latest mono from svn this weekend and if it does the same there I'll post a bugzilla on it.

It also does not happen with Firefox on mono. My first guess is that Path.GetFileName on linux doesn't understand c:\blah\blah which is passed up from IE and therefore treats the whole thing as the file name where it would understand a linux path like /blah/blah/somefile

I  can't prove it obviously because I can't upload a file from IE on linux


Thanks,

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