mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-29 00:55:51 +08:00
feature (viewer): support wave file
This commit is contained in:
@ -24,7 +24,7 @@ export function opener(file){
|
||||
return ["image", null];
|
||||
}else if(["application/javascript", "application/xml", "application/json", "application/x-perl"].indexOf(mime) !== -1){
|
||||
return ["editor", null];
|
||||
}else if(["audio/wav", "audio/mp3", "audio/flac", "audio/ogg"].indexOf(mime) !== -1){
|
||||
}else if(["audio/wave", "audio/mp3", "audio/flac", "audio/ogg"].indexOf(mime) !== -1){
|
||||
return ["audio", null];
|
||||
}else if(mime === "application/x-form"){
|
||||
return ["form", null];
|
||||
|
||||
@ -12,7 +12,6 @@ import (
|
||||
"github.com/aws/aws-sdk-go/service/s3/s3manager"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
Reference in New Issue
Block a user