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

Comment uploads will lose the content type #338

Open
awakenrz opened this issue Jun 7, 2017 · 0 comments
Open

Comment uploads will lose the content type #338

awakenrz opened this issue Jun 7, 2017 · 0 comments

Comments

@awakenrz
Copy link

awakenrz commented Jun 7, 2017

I use the API to upload attachments to a comment:

ticket.comment.uploads << file
ticket.save!

However, all the uploads lost their content_type.

I've tried the following too:

ticket.comment.uploads << {
  :filename => file.original_filename,
  :file => file.path,
  :content_type => file.content_type
}

But the content type is still missing when I later fetch the attachment for the comment.

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

No branches or pull requests

1 participant