save_assets_to_file path shouldn't always assume uploaded
content are images and use .jp2 for the file extension.0.6.0-stable
parent
987c7498c3
commit
b47dd07932
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue