New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Ability to attach files to issues (attachments) #307
Conversation
Conflicts: models/issue.go routers/repo/issue.go
Update: Could this wait a minute? I'm just testing a missing option ^^ |
Sure. |
Ok, new commit is in :-) Update: After this, could the try.gogits.com site be updated? |
IssueId int64 | ||
CommentId int64 | ||
Name string | ||
Path string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think add tag xorm:"TEXT"
would be better in case file path is longer than 255
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I can do that when I'm home.
Feld geupdated. |
No problem~ |
Feature: Ability to attach files to issues (attachments)
Seems like only allow 1 attachment for each comment right now? |
BTW, it's working, perfect! |
Demo site is now running with latest commit on |
That's good to hear :-) |
You're rocking! |
No worry, next PR will be there in a minute ;-) |
This fixes #304.
Add the ability to add attachments to issues/comments.
A new button was added below the text area of comments/issues, which allows the upload of multiple files.
Files get listed below the text of an issue/comment. Hovering over the files gives a little preview (for images).
If an issue/a comment gets deleted the files attached get deleted too.
There are
45 new config values that controll the uploads. (under [attachment])I'm not good with styling, so the CSS should probably be adjusted :-)
Here an little image: