Commit Graph

882 Commits (c9b65f0fdcaebb23cc6071e86881f623e6b6a3e7)

Author SHA1 Message Date
Unknwon 9f12ab0e88 update locale
Unknwon 77dcef0cab fix milestone format parse
Unknwon 2c507667bf Merge branch 'develop' of github.com:gogits/gogs into feature/milestone
# Conflicts:
#	gogs.go
#	models/issue.go
#	templates/.VERSION
Unknwon 0705f55ce0 finish new milestone page
Unknwon 74bd6b939c milestone: edit
Unknwon 3e4cdccf6b milestone: create page
Unknwon e50982f5ec allow anonymous SSH clone
Unknwon 487fc8ca39 fix
Unknwon e6792796cc minor fix on
无闻 96c1ce9606 Merge pull request from manfer/enhance-copy-clipboard
Enhance copy clipboard
Fernando San Julián 6a89eeedf3 browser supports copy detection
Unknwon 04458d49a0 milestone: list view
Unknwon cbb78b6a63 better wording
Unknwon d496d0cc4d replace path.Join
Unknwon 1490e862cc custom workDir function to handle speical case in Windows
Unknwon 03011e31fe update locale and .gopmfile
Fernando San Julián c5be40decb new markdown styles
Unknwon b983912fce add italian support
Unknwon c541938a3d update locale and prepare for 0.6.3 release
Vladimir Vissoultchev 2cc050e21e Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings
Unknwon 72377c721c update gopmfile
无闻 678700b74d Merge pull request from wqweto/develop
Allow file and directory names to contain percent character
Vladimir Vissoultchev 167265d533 Allow file and directory names to contain percent character
无闻 7d8121b077 Merge pull request from wqweto/develop
Allow explicit charset/codepage setting for ANSI source files to alle…
Unknwon 589618c8a5 better paging
Vladimir Vissoultchev 53bcf373c1 Allow explicit charset/codepage setting for ANSI source files to alleviate issue
Unknwon 686dd59916 fix with migration and update locale
Unknwon 6f8e388b55 fix
- prevent create reop on existed path
Unknwon 436ef5b50a go-bindata on and fix
Unknwon fa298a2c30 : Realtime webhooks
Unknwon 2e7b38db9f fix paging links and issue count
无闻 b838e94980 Merge pull request from vitalvas/develop
Add function in cron to autofix counters in repository
Unknwon 752b527152 update Chinese locale
Unknwon 1ba837a055 new issue and label page
Unknwon 54b58e988d Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Unknwon 70d44e9565 Merge branch 'master' of github.com:gogits/gogs into develop
无闻 d86c4841fa Merge pull request from stettberger/master
settings/password: no minimal required characters for OldPassword
无闻 3dcc0a4b5f Merge pull request from donbowman/master
in routers/repo/download.go, don't set mime type, let go figure it out.
无闻 91ab2538c3 Merge pull request from jamesa/develop
Add full name field to admin's user edit page (fixes )
Unknwon dc4aab9925 UI: CURD labels
- fix update lable break connection with repository
Unknwon ac95f6d50f UI: basic label list
- create new label
Unknwon 86dbda0b42 UI: basci issue list without filters
- fix isRead check
- fix paging
Unknwon 4447a20f87 UI: issues - finish basic frame
Unknwon 548b95f7b5 fix install form def
Unknwon ff051e2106 : API calls are not hidden behind sign in
Unknwon 4cbbaefd82 : hide user e-mail when API caller isn't signed in
Unknwon 81adbe17ca use pam and update TRANSLATORS
Unknwon 2724dbd450 update locale
Unknwon eb0f0710f0 add more gitignores
Unknwon a2a9e151f8 install - add mail from setting
Unknwon b9dc2147b4 UI: install - done
Unknwon 5cf3732339 UI: install - new version
Unknwon 5dd3dd71a0 UI: install - database settings
Unknwon 9af8a6c6a3 update locale
Unknwon 1269ce0538 update locle
Unknwon 1564b77cf5 update locale
Unknwon 1492c905bb update locale
Unknwon 4fca548ed1 update locale
Unknwon c47afdff58 add config options for HELO
Christian Dietrich b36134194c settings/password: no minimal required characters for OldPassword
If users are added to gogs due a reverse proxy automatically, their password is
set to their initial username. If their username is shorter than 6 characters,
they can never set a password. But since this password is required for some
operations (e.g. repository deletion), they could not use all features of gogs
until now.
James f3aab5dbe3 Add full name field to admin's user edit page (fixes )
Unknwon c08baee085 Merge branch 'develop' of github.com:gogits/gogs into develop
Unknwon 7a7c096fd0 update typo in locale files
Paolo Borelli 182003aa41 Add PAM authentication
Tony Narlock 6a0fec77ea Allow an SSHDomain configuration option. Defaults to Domain, preserves legacy behavior
Don Bowman 81e6173356 remove blackfriday.EXTENSION_HARD_LINE_BREAK from options.
Linquize f26f8d5afa Set Content-Type to text/plain for http status 401
This is because git command line shows the failure reason only if Content-Type is text/plain.
Unknwon 698b9e2acc Clearer error message for illegal characters
blemasle e1a4f99eaa fixed panic error on user login
Unknwon c5c5aac7a5 typo fix
Unknwon aae74c793a add config option [service] DISABLE_MINIMUM_KEY_SIZE_CHECK
Unknwon 211596f407 LDAP add and edit form are misleading
Unknwon caf7618ea6 Hide gravatar email field if gravatar is disabled (or offline mode)
Unknwon ab6b288141 fix markdown: render special links
- code format for 
无闻 750d82b8e2 Merge pull request from jcracknell/tag-exclude-nethtml
Exclude HTML tags from Markdown post-processing
Unknwon 2bb982dada : Remove footer ads/branding from default template
Unknwon ade343f6dc Add Polish support
Unknwon 75cbb32b1e UI compatibility
Vitaliy Vasilenko 20a8d651f3 add func to autofix couters in repository
Unknwon b6f8b486c7 add sr-only class, change to new tag line
Unknwon 1cb57b1a44 : fix locale
Unknwon e6cf83b8c0 Put default config into binary
Unknwon 49aeb87e44 : Windows Expects UNIX Directory Separator
Unknwon 466facc009 : Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
Unknwon 33894591a6 : Edit Account does not take into consideration password rules
Christophe Le Guern d61962a18a Add setting.AppSubUrl for LANDING_PAGE = explore
Add setting.AppSubUrl in case of different ROOT_URL and LANDING_PAGE = explore
Unknwon 588f3215c6 : dashboard no longer accessible when repo is missing
Unknwon b72e75e522 : OFFLINE_MODE Still Uses Gravatar
Nolan Darilek 98674b2a21 registeration -> registration
Unknwon 34102f7889 remove unused scripts and simplify migrate form definition
Filippo Valsorda 5d5d774e03 Handle submodules without a .gitmodules entry - fix
James Cracknell 41cc43208e Mousewheel paste
James Cracknell 127eb439d7 Exclude HTML tags from Markdown post-processing
HTML tags are no longer processed for special links, etc
Contents of <a>, <code> and <pre> are not processed for special links
Processing for special links is done after Markdown conversion
Unknwon 5e763baa12 modules/git/signature.go: parse date foramt
无闻 3db80f2c55 Merge pull request from diseaz/mailer-client-cert
Use client certificate for SMTP over TLS
Unknwon b0b11fd7b1 Merge branch 'access' of github.com:gogits/gogs into dev
无闻 3a6ba39a61 Merge pull request from theangryangel/fix/ldap-auth
Attempt 3 to fix LDAP login issues when git pushing after password change
Gogs fab038b175 Attempt of ldap fixes
Unknwon e3dece1371 modules/setting: simple behave change in startup
无闻 cd8b43d984 Merge pull request from Lafriks/dev
Get username, name, surname and e-mail from LDAP server
Unknwon 10e4b5b6c6 Merge branch 'access' of github.com:gogits/gogs into access
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Unknwon 059338139c routers: able to migrate repo from local path
- modules/middleware/context.go: add HandleAPI method
Unknwon 9dfa17faf2 modules/git: able to parse RFC1123Z date format
Unknwon 1654e9ecab templates/user/settings/emial.tmpl: little fix on UI
- routers/user: little code format
- conf/locale: update French locale
无闻 065f8d1f56 Merge pull request from uchti/dev
Fix: 504 5.5.2 <localhost>: Helo command rejected
Gogs 2f1369c614 add error for hello func
Gogs 5293ae1221 Fix: 504 5.5.2 <localhost>: Helo command rejected
Alexey Makhov 563e8b4ea9 gitlab-like hash naming
无闻 a307574fbc Merge pull request from phsmit/dont_mention_php
Remove the "PHP" style formatting function
Peter Smit e6fc58a744 Remove GoGet option from repository and handle it with ?go-get=1 instead
The normal go get protocol is to show the go-import meta tag when ?go-get=1 is appended to the url. This commit implements that behaviour and cleans the go-get option from the repository settings page.
Peter Smit 7759b9ee6e Remove the "PHP" style formatting function
The "PHP" formatting function doesn't add anything, except an undocumented date format.

All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience.
Peter Smit ed89b39984 Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods

Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
Unknwon f625665d8d modules/setting: add abs path check before add workdir prefix
Dmitry Azhichakov 3aaf292ba8 Fix "forcing" client certificate for SMTP
Unknwon 6b7d35eade fix mirror issues uncaught
Unknwon 6d0f3a07d4 code fix caution: undertest
Dmitry Azhichakov 8a6c86644e New feature: SMTP connection may use client certificate.
New config keys in [mailer] section:
 - CERT_FILE: path to a certificate file.
 - KEY_FILE: path to a key file.
Peter Smit 6c1ee384f1 Merge remote-tracking branch 'mine/access_refactor' into access_refactor
Conflicts:
	cmd/serve.go
	models/access.go
	models/migrations/migrations.go
	models/org.go
	models/repo.go
	models/user.go
	modules/middleware/org.go
	modules/middleware/repo.go
	routers/api/v1/repo.go
	routers/org/teams.go
	routers/repo/http.go
	routers/user/home.go
Peter Smit 0a4cda0dd4 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
Unknwon 7e7160eefd first pass work on migration
Unknwon d02e45f985 better naming on
Unknwon 28580aee63 modules/middleware/auth.go: remove uncheck login for watch a repo
Unknwon 6a23252edc able to allow insecure certification of webhook for
Peter Smit 0d158e569b Change constants to UPPERCASE_WITH_UNDERSCORE style
Peter Smit 5cd887dba5 Fixes
Fixes  and makes the Mention regexp be in line with the others
Unknwon 3cc04682c5 modules/setting: mirror path issue
无闻 cd0ee35b3f Merge pull request from phsmit/conf_on_cli
Add option to provide configuration file on command line
Unknwon 3a44143b81 modules/ans1-ber: fix LDAP UTF8 string decoding for
Lauris BH 00653e52ee Get username, name, surname and e-mail from LDAP server
Unknwon 2a2596fe61 able to disable SSH for
Unknwon 216683004e code fix for , and work for
无闻 87b90372a7 Merge pull request from nicolai86/feature/hide-signup-button-884
Make Signup button display configurable - 
Unknwon afccd0a3ee models/action.go: mirror fix on
- modules/base/markdown.go: fix issue link issue
- routers/repo/view.go: remove useless code
Unknwon 0669897226 modules/base: fix markdown mention regex for
- conf/locale: add mew translator profile
无闻 ddddad9792 Merge pull request from deringer/dev
Fix user mention bug when parsing markdown documents
Peter Smit 4e79adf6b5 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
Raphael Randschau 79f3281548 Add ShowRegistrationButton configuration option
Peter Smit 1ab09e4f1b Add option to provide configuration file on command line
Unknwon bfce0def25 modules/base: fix README filename checker, fix
Unknwon b293b6eaa6 cmd: CMD option for port number of `gogs web` to prevent first time run conflict
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
Unknwon fb9dcfa921 modules/midlleware: little auth code fix,
Unknwon d8394bb2e0 modules/midlleware: little auth code fix
Unknwon ee6786216a modules/base: clean code with
Unknwon 37fcc8daf2 modules/base: add RenderCommitMessage with XSS-safe and special links
- update russian locale
无闻 830bc75107 Merge pull request from vitalvas/dev
Fix in url if cache avatar is enabled
Unknwon 8e384ce46c fix , may cause unintentional break in other features, but security is no.1
Vitaliy Vasilenko cf59057ef3 fix if service.ENABLE_CACHE_AVATAR is true
Unknwon 452cca35e0 Merge branch 'encoding' of github.com:gogits/gogs into dev
Conflicts:
	.gopmfile
Peter Smit e6f97c78ff Change chardet to gogits
Michael Dyrynda c7cbdd34fb Adjust MentionPattern to not match users mid-sentence (or email addresses)
Fix link to user profile, update based on adjusted MentionPattern
Unknwon c73e9057ae Optmize git-fsck options and fix
Unknwon bd555551ce fix
Unknwon 81a44e4cd0 fix API changes
Peter Smit fff8109567 Removing redundant mahonia
Peter Smit 3af757ed77 Replace mahonia with the standard functions in the Golang Sub-repositories
无闻 030b3d751e Merge pull request from phsmit/correct_from
Correct usage of FROM in email creation
无闻 a18decf4cc Merge pull request from phsmit/multiple_emails
Multiple emails
Peter c884ecfea1 Parse the from string to extract the email address
Peter edbe1de026 Remove unused "User" member of Message Struct and fix bounce address
The User member of a message is not needed anymore.

The from that is send to the server, should always be the "system" from. This is also called the Bounce address http://en.wikipedia.org/wiki/Bounce_address
Peter 2321b4b272 Change from header in email, fixes
Peter 007cf33e88 Remove standard mailer port lines
This lines got committed by accident. They do actually nothing, as SplitHostPort will give an error if port is not given.
Unknwon b231b8c927 update locale and mirror code format
Peter eca42bcb44 Prefer CRAM-MD5 over PLAIN authentication
Peter 5ffeca35e7 Add option to use CRAM-MD5 as authentication method in the mailer
Peter 87be137b88 Rewrite of SendMail function
The SendMail function is rewritten and has the following new functionality:
 - It is optional to skip verification of keys. The config option SKIP_VERIFY is added
 - If the port is 465, or ending on 465, the TLS(/SSL) connection is started first.
Peter b033f2f535 Finish method for having multiple emails/user.
All basics are implemented. Missing are the right (localized) strings
and the page markup could have a look at by a frontend guy.
Peter ec71d538fc Method for activating email addresses through verification email
Unknwon 9803c421f5 fix binding api broken
Unknwon b553ea45ee modes/repo: incorrect SSH clone URL for
Unknwon ac4a10456e api: able to create repo and fix
- POST /user/repos
- POST /org/:org/repos
Unknwon bc8721fb6c Finish new UI for release page
Unknwon 9ee80e3e54 fix compile error
无闻 b2c6a6920f Merge pull request from Mageti/master
Correction for 
Mageti e321469884 remove unused code in BasicAuthDecode
Mageti b7ebbb4064 Correction for
Correction for 
Bug was : decode failed if the password contains ```:```
Unknwon 9a1fe801e5 fix
Alukardd 21081836ba Allow send mail without authentication if SMTP server allow this
Joseph Crail 39c068400e Fix spelling errors in comments.
Unknwon 0b785ad967 work on
Unknwon 069486d169 fix
Andrew Burns 35b02997f8 Fix Gravatar images in web view (like commit listing)
Related to 

In the original bug report it was referencing only the sytem avatar images for setup users (like in the header); however the problem also persists with things like commit history.

This commit fixes the `tool.AvatarLink` function so that it also uses the already existing `avatar.HashEmail` function.

I also refactored the `tool.AvatarLink` method some to make the control flow more apparent and adhere better to DRY (there were multiple calls to the `EncodeMd5` function that the `HashEmail` function call replaced, now there is only one.)
Andrew Burns adc1ac689e HashEmail function should also remove spaces
According to the [Gravatar API](https://en.gravatar.com/site/implement/hash/) whitespace should also be removed from the email, it was not doing this previously.
dennis-smurf d0a80e432d Addded sha1 pattern in markdown for current repository
Unknwon 9558999698 mirror fix
Unknwon d75013a0e8 fix
Unknwon db4951bc61 mirror fix on oauth2
Unknwon d6132aaa88 fix oauth2
Unknwon 54d25c13d7 Fix
Unknwon ef275ebf62 more on change avatar
Unknwon 55dfe2c978 custom avatar upload
Unknwon 3c3f7c2a56 Fix
Unknwon ce8d4cc80b
Unknwon 37d8d3afe9 more APIs on
Unknwon 32dcaefafa fox
Unknwon a0f9197b45 GetFile api
Unknwon 340a4595dd support duoshuo mirror of gravatar
Unknwon 52d66ba6c8 , use go-gogs-client
Sean Keery 6bdb8ec4b9 Add function argument missing
Not enough arguments in call to c.AddFunc when I copied and pasted
Unknwon 9dc3c93a6a , add/edit hook
Unknwon 8eb5120fbd , API: list user repos, list repo hooks
Unknwon 8c9338a537 add personal access token panel
Unknwon e0de6cb5ad work on and update locales
Unknwon 35977cd34c continue work on
Unknwon abc57b6e43 work on
Unknwon 23eec25274 Fix , fix , fix
Unknwon 0c5ba4573a fix session API broken and SQL pretection
Andy Leap 5094e9501c Add basic FCGI support
mcheng89 b9881d1e7b check for smtp AUTH extension
Unknwon f1d8746264 Fix fork repo and macaron API broken
Christopher Brickley 3794111460 update slack hook to use new format
Unknwon a342d58d7e Able to fork repo to individuals
Unknwon 3abc41ccca Fix API broken
Unknwon fa241efa6d Use binding middleware
Unknwon 9ae92459a5 Fix repo css and rel path img in md
Unknwon 3005c4f6db Fix diff css style, hooks \r char
Unknwon 963354c5d7 Add raw, history file button, and other mirror fixes
Unknwon b2632dec09 Page: Compare 2 commits
Unknwon 39931f8e00 Allow mail with self-signed certificates
Michel Roux 6705559ce0 Fix malformed address
Unknwon 1e1f9e7166 Update with macaron
Unknwon 64c68220d2 Fix
Unknwon 91e5c24a31 Fix
无闻 b694cc88e4 Merge pull request from linquize/tag-sort-reverse
sort tags in descending order by version number
Linquize 67c44b7d27 If git >= 2.0, sort tags in descending order by version number
Unknwon 263d409326 Basic xss prevention
Unknwon 2a031c1365 Fix
Martin van Beurden bb05ef907b Fix AvatarLink when using a suburl and gravatar is disabled or avatars are cached
Unknwon 49193bebd2 UI: Confirmation box
Unknwon f69761563b Fix bug on transfer repo
Unknwon 25268577a5 Fix download archive issue
Unknwon a1109e6fbc Page: Repository home page
Unknwon ebb05475ed Fix and cannot view repository by tag
Unknwon 135d3733b3 Feature: Integrate crypto/tls/generate_cert.go command
Unknwon 3f707b3f32 Add basic submodule support
lunnyxiao 7df60af60e submodule support and closed
lunnyxiao 79ec08141a Merge branch 'dev' of github.com:gogits/gogs into dev
lunnyxiao 150eef93b2 add submodule basic support & buf fixed
Unknwon 1273b3d3a9 Support custom robots.txt
Unknwon b72d7c201a Mirror bug fix
Unknwon 4a01bb8fa4 Mirror bug fix
Martin van Beurden 976f1486e0 Set cookiepath to AppSubUrl
Unknwon 7ba9257a7f Add suburl support
Martin van Beurden 0055cbd365 Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts:
	modules/setting/setting.go

Conflicts:
	templates/repo/release/list.tmpl
	templates/user/dashboard/dashboard.tmpl

Conflicts:
	routers/repo/setting.go
Unknwon 8a09256941 Mirror fix and fix
lunnyxiao 061a879cea Merge branch 'dev' of github.com:gogits/gogs into dev
Conflicts:
	conf/app.ini
lunnyxiao ed84adb679 toutf8 improved & add max git diff lines
Unknwon ae3639868e Quick fix on
Unknown ebb4f1b78c Work and
Unknwon 62f21ff3ed Work on
Unknwon 0d9c41be7d Work on
Unknwon b9560374cd UI fix
Mathieu Gagnon 3549fb0ea8 Remove APP_LOGO setting
Unknwon a2cac952a4 Prepare 0.5 release
Unknwon 2a3660dae3 Fix
Unknwon d89e630bc0 Fix test cases
Unknwon 59a7c7c5a5 Remove ldap dep
Unknwon 25d6ae69d1 Remove hg dep
Unknwon 0ddb1eb769 Finish new install page, almost ready for 0.5 release
Unknwon 8b0e815d98 Fix
Unknwon bf5595f9a0 Merge branch 'dev' of github.com:gogits/gogs into dev
Unknwon 36661f53e6 Update deps
Christopher Brickley 2bce24068d add Slack API webhook support
Tristan Storch 69e332f432 Removed trailing white spaces
Removed trailing whitespaces with

```sh
for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done
```

and some handwork.
Unknwon 9bc63bda7d Finish all new admin pages.
Unknwon 8829174574 Finish new admin users pages
Unknwon 9baf2b38d0 Bug fix on organization
Unknwon f2c263c54f fix
Unknwon 21a1b8e5a3 Finish new edit team page, add member to team
Unknwon 97a373f5e7 Fix , update code with upstream
Unknwon bba707de36 Finish team list, create new team, join/leave team page
Unknwon 36b4c57ff1 Finish new organization members and invitation page
Unknwon 5acc948562 Page: `/org/:orgname/settings`
Unknwon 5fbf8531e6 Finish new home page of organization
Unknwon 7af7584d25 Finish new reset password, etc.
Unknwon 5605af973b Feature: Social sign in
Unknwon 78defd238c Page: Manage social accounts
Unknwon 9a1d5d2489 Finish new web hook pages
Unknwon fa0a389dc4 Fix bare repo bug
Justin Nuß 8023494a94 Fix invalid struct tags and remove unreachable code.
Unknwon 755eec745f Finish new repo settings page
Unknwon 669552e255 Fix
Unknwon b95e78f7e6 Mirro fix on PR
无闻 568c9b353e Merge pull request from nuss-justin/issue/281
Fix . Add mouse-over precise time and on-click switch listener.
Unknwon dabf5b057c Finish new migrate page
Unknwon 7bbf644dd5 Convert captcha, cache, csrf as middlewares
Unknwon 3428baa3b5 Mirror fix on template
Unknwon 9813161411 Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
Unknwon 5e81383413 Git installation check, show image in single file view, show short SHA1 instead of 40-length string, complete log module
Justin Nuß 91480f3791 Merge branch 'dev' of https://github.com/gogits/Gogs into issue/281
Conflicts:
	modules/base/tool.go
Unknwon 35c75f06a0 Fix test case
Unknwon 545d320648 Docs fix
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!!
Unknwon 8dd07c0ddd New UI merge in progress
Justin Nuß f7617997ce Ignore EOF error when parsing form.
Justin Nuß 835e85b5ce Fix . Add mouse-over precise time and on-click switch listener.
Unknwon c20f5dc2ea Merge branch 'dev' of github.com:gogits/gogs into dev
Unknwon a41a1fe60d Mirror fix
Justin Nuß 4d702eb345 Allow disabling uploads
Justin Nuß bfe5b86004 Add file upload for attachments