save_assets_to_file path shouldn't always assume uploaded

content are images and use .jp2 for the file extension.
0.6.0-stable
Sean Dague 2008-06-13 19:41:13 +00:00
parent 987c7498c3
commit b47dd07932
1 changed files with 8 additions and 1 deletions

View File

@ -780,9 +780,16 @@ namespace OpenSim.Framework.Communications.Capabilities
httpListener.RemoveStreamHandler("POST", uploaderPath);
// TODO: probably make this a better set of extensions here
string extension = ".jp2";
if (m_invType != "image")
{
extension = ".dat";
}
if (m_dumpAssetsToFile)
{
SaveAssetToFile(m_assetName + ".jp2", data);
SaveAssetToFile(m_assetName + extension, data);
}
handlerUpLoad = OnUpLoad;
if (handlerUpLoad != null)