Skip to content

Commit c10c19c

Browse files
resolving conflicts
1 parent 886872d commit c10c19c

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

Diff for: api/pkg/controllers/survey_sessions.go

+5-11
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@ package controllers
22

33
import (
44
"bytes"
5-
<<<<<<< HEAD
65
"encoding/json"
7-
=======
8-
>>>>>>> main
96
"errors"
107
"fmt"
118
"io"
12-
<<<<<<< HEAD
13-
"net/http"
14-
=======
159
"log"
10+
"net/http"
1611
"path/filepath"
1712
"strings"
18-
>>>>>>> main
1913

2014
"github.com/labstack/echo/v4"
2115
"github.com/plutov/formulosity/api/pkg/http/response"
@@ -192,14 +186,14 @@ func (h *Handler) getUploadedFile(c echo.Context, req []byte) (*types.File, erro
192186
return nil, errors.New("file not provided")
193187
}
194188
fileName := header.Filename
195-
fileExt := strings.ToLower(filepath.Ext(fileName))
189+
fileExt := strings.ToLower(filepath.Ext(fileName))
196190

197191
defer file.Close()
198192

199193
uploadedFile = &types.File{
200-
Name: header.Filename,
201-
Data: file,
202-
Size: header.Size,
194+
Name: header.Filename,
195+
Data: file,
196+
Size: header.Size,
203197
Format: fileExt,
204198
}
205199
}

0 commit comments

Comments
 (0)