Skip to content
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

Force download of attachments #1490

Merged
merged 4 commits into from Apr 10, 2022
Merged

Force download of attachments #1490

merged 4 commits into from Apr 10, 2022

Conversation

fanpu
Copy link
Contributor

@fanpu fanpu commented Mar 29, 2022

Description

Cause attachments to be downloaded instead of being opened with the default MIME handler.

I had to also fix the rubocop-rails dependency in the Gemfile.lock as the previous config broke rubocop for me.

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have run rubocop for style check. If you haven't, run overcommit --install && overcommit --sign to use pre-commit hook for linting
  • My change requires a change to the documentation, which is located at Autolab Docs
  • I have updated the documentation accordingly, included in this PR

Other issues / help required

If unsure, feel free to submit first and we'll help you along.

Gemfile Outdated
@@ -119,7 +119,6 @@ group :development do
gem 'binding_of_caller' # enhances better_errors

# static code analyzer
gem 'rubocop', require: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might have accidentally removed rubocop from the gemfile

Copy link
Contributor

@xinyis991105 xinyis991105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix Gemfile and Gemfile.lock? Otherwise, LGTM!

@fanpu
Copy link
Contributor Author

fanpu commented Apr 10, 2022

Could you fix Gemfile and Gemfile.lock? Otherwise, LGTM!

Restored the old Gemfiles, previously I was able to have rubocop working with just rubocop-rails and so thought it superseded rubocop

Copy link
Contributor

@xinyis991105 xinyis991105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fanpu fanpu merged commit 02d76ab into master Apr 10, 2022
@fanpu fanpu deleted the force-attachment-dl branch April 10, 2022 20:52
@fanpu fanpu restored the force-attachment-dl branch April 10, 2022 20:55
@fanpu fanpu deleted the force-attachment-dl branch April 10, 2022 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants