forked from electricdusk/rushlink
Redirect to /meta after upload/shorten
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"net/url"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/pkg/errors"
|
||||
@@ -214,3 +215,8 @@ func (fu *FileUpload) URL() *url.URL {
|
||||
}
|
||||
return urlParse
|
||||
}
|
||||
|
||||
// Ext returns the extension of the file attached to this FileUpload.
|
||||
func (fu *FileUpload) Ext() string {
|
||||
return filepath.Ext(fu.FileName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user