diff options
-rw-r--r-- | OpenSim/Framework/Communications/Capabilities/Caps.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 2bfcaca..5249aa2 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -780,9 +780,16 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
780 | 780 | ||
781 | httpListener.RemoveStreamHandler("POST", uploaderPath); | 781 | httpListener.RemoveStreamHandler("POST", uploaderPath); |
782 | 782 | ||
783 | // TODO: probably make this a better set of extensions here | ||
784 | string extension = ".jp2"; | ||
785 | if (m_invType != "image") | ||
786 | { | ||
787 | extension = ".dat"; | ||
788 | } | ||
789 | |||
783 | if (m_dumpAssetsToFile) | 790 | if (m_dumpAssetsToFile) |
784 | { | 791 | { |
785 | SaveAssetToFile(m_assetName + ".jp2", data); | 792 | SaveAssetToFile(m_assetName + extension, data); |
786 | } | 793 | } |
787 | handlerUpLoad = OnUpLoad; | 794 | handlerUpLoad = OnUpLoad; |
788 | if (handlerUpLoad != null) | 795 | if (handlerUpLoad != null) |