mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-16 11:00:02 +02:00
Web editor: support upload files
This commit is contained in:
parent
7c31f235da
commit
643142acab
24 changed files with 503 additions and 600 deletions
|
@ -652,10 +652,8 @@ func (err ErrTeamAlreadyExist) Error() string {
|
|||
//
|
||||
|
||||
type ErrUploadNotExist struct {
|
||||
ID int64
|
||||
UUID string
|
||||
UserID int64
|
||||
RepoID int64
|
||||
ID int64
|
||||
UUID string
|
||||
}
|
||||
|
||||
func IsErrUploadNotExist(err error) bool {
|
||||
|
@ -664,5 +662,5 @@ func IsErrUploadNotExist(err error) bool {
|
|||
}
|
||||
|
||||
func (err ErrUploadNotExist) Error() string {
|
||||
return fmt.Sprintf("attachment does not exist [id: %d, uuid: %s, user_id: %d, repo_id: %d]", err.ID, err.UUID, err.UserID, err.RepoID)
|
||||
return fmt.Sprintf("attachment does not exist [id: %d, uuid: %s]", err.ID, err.UUID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue