This commit is contained in:
adbenitez
2023-02-27 02:39:02 -05:00
parent 533332a6ae
commit 24c3204e54

View File

@@ -86,7 +86,7 @@ func (gw *Gateway) handleFiles(msg *config.Message) {
for i, f := range msg.Extra["file"] {
fi, ok := f.(config.FileInfo)
if ok {
if !ok {
mapstructure.Decode(f.(map[string]interface{}), &fi)
}
ext := filepath.Ext(fi.Name)