mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
save_assets_to_file path shouldn't always assume uploaded
content are images and use .jp2 for the file extension.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user