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

add proper checking of paperclip ffmpeg attachment #1

Open
pr0d1r2 opened this issue May 18, 2015 · 1 comment
Open

add proper checking of paperclip ffmpeg attachment #1

pr0d1r2 opened this issue May 18, 2015 · 1 comment

Comments

@pr0d1r2
Copy link
Owner

pr0d1r2 commented May 18, 2015

After update of paperclip-ffmpeg there is recomended to check content_type or file name to match supported formats.

See: http://stackoverflow.com/questions/21897725/papercliperrorsmissingrequiredvalidatorerror-with-rails-4

@pr0d1r2
Copy link
Owner Author

pr0d1r2 commented May 18, 2015

Possible content types (from http://en.wikipedia.org/wiki/Internet_media_type):

  • video/avi: Covers most Windows-compatible formats including .avi and .divx[17]
  • video/example: example in documentation, Defined in RFC 4735
  • video/mpeg: MPEG-1 video with multiplexed audio; Defined in RFC 2045 and RFC 2046
  • video/mp4: MP4 video; Defined in RFC 4337
  • video/ogg: Ogg Theora or other video (with audio); Defined in RFC 5334
  • video/quicktime: QuickTime video; Registered[18]
  • video/webm: WebM Matroska-based open media format
  • video/x-matroska: Matroska open media format
  • video/x-ms-wmv: Windows Media Video; Documented in Microsoft KB 288102
  • video/x-flv: Flash video (FLV files)

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