SkinList.aspx Upload Bug

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/28/2012 9:30:36 AM
Gravatar
Total Posts 2

SkinList.aspx Upload Bug

I have had to fix this in each rendition of the code for uploading new skins. Basically it will throw the following errror when trying to upload:

System.IO.DirectoryNotFoundException: Could not find a part of the path.

The function Upload_Click function to clear out the current skin in the location it will delete the path to where the new skin will be placed then calls zipFile.MoveTo(destPath, MoveToOptions.Overwrite); which blows up because the directory doesn't exist. I have added the following in order to fix it prior to this call.

DirectoryInfo di = new DirectoryInfo(destFolder);                

if (!di.Exists)

{                    

     di.Create();               

 }

Not sure if it has been identified yet or of there is a reason for this oversight.

 

 

9/28/2012 10:16:37 AM
Gravatar
Total Posts 18439

Re: SkinList.aspx Upload Bug

Thanks! I will make this change.

Best,

Joe

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