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