upload file
This commit is contained in:
parent
9b0e21775a
commit
02b24543e3
2
Makefile
2
Makefile
|
|
@ -24,8 +24,6 @@ push: docker
|
|||
docker push $(IMAGE_TAG)
|
||||
|
||||
tag:
|
||||
git add .
|
||||
git commit -m $(TAG)
|
||||
git tag $(TAG)
|
||||
git push origin master
|
||||
git push origin $(TAG)
|
||||
|
|
@ -46,6 +46,7 @@ func GetPostOrDeleteFile(c *gin.Context) {
|
|||
log.WithError(err).Error("GetPostOrDeleteFile: Make nfs dir error")
|
||||
}
|
||||
}
|
||||
log.Infof("Receive file name: %s, size: %d, path: %s", file.Filename, file.Size, filePath)
|
||||
err = c.SaveUploadedFile(file, filePath)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("GetPostOrDeleteFile: Save file error")
|
||||
|
|
|
|||
Loading…
Reference in New Issue