Redirect to /meta after upload/shorten
This commit is contained in:
1 parent
d34ac11d5e
commit
ca859adab1
9 files changed
+32
-67
No files matched your search
@@ -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