diff options
author | Philip Couling <couling@gmail.com> | 2017-01-15 14:57:00 +0000 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-15 22:57:00 +0800 |
commit | 64375d875b4d46a6081026290da8efd82c84b25f (patch) | |
tree | de35ef6470c9f8762f2dcd1912fc56dc4a499bad /modules/auth/repo_form.go | |
parent | dce03c19cb6c0f067a75f04a1bc1e7cb3528c585 (diff) | |
download | gitea-64375d875b4d46a6081026290da8efd82c84b25f.tar.gz gitea-64375d875b4d46a6081026290da8efd82c84b25f.zip |
Attach to release (#673)
* Moved attachaments POST url from /issues/attachments to /attachments
* Implemented attachment upload on release page
* Implemented downloading attachments on the release page
* Added zip and gzip files to default allowed attachments
* Implemented uploading attachments on edit release
* Renamed UploadIssueAttachment to UploadAttachment
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r-- | modules/auth/repo_form.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 8a200c0206..dda1f9d252 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -267,6 +267,7 @@ type NewReleaseForm struct { Content string Draft string Prerelease bool + Files []string } // Validate valideates the fields @@ -280,6 +281,7 @@ type EditReleaseForm struct { Content string `form:"content"` Draft string `form:"draft"` Prerelease bool `form:"prerelease"` + Files []string } // Validate valideates the fields |