Skip to content

Instantly share code, notes, and snippets.

@tateisu
Created July 20, 2023 05:01
Show Gist options
  • Save tateisu/7d73716692964026aaac737263db83c8 to your computer and use it in GitHub Desktop.
Save tateisu/7d73716692964026aaac737263db83c8 to your computer and use it in GitHub Desktop.
dngをwebpに圧縮し直して、しかしファイル名をdngのまま渡してしまったら500エラー
[paperclip] Trying to link /tmp/RackMultipart20230720-11-v47v1e.dng to /tmp/dc7d249d8b28aa3de52adee3c23b59f320230720-11-w6xyvk.dng
[paperclip] Trying to link /tmp/dc7d249d8b28aa3de52adee3c23b59f320230720-11-w6xyvk.dng to /tmp/9a00d57b560f0769a091757e8d51549c20230720-11-avxgjy.webp
Command :: file -b --mime '/tmp/9a00d57b560f0769a091757e8d51549c20230720-11-avxgjy.webp'
Command :: identify -format %m '/tmp/dc7d249d8b28aa3de52adee3c23b59f320230720-11-w6xyvk.dng[0]'
method=POST path=/api/v2/media format=html controller=Api::V2::MediaController action=create status=500 duration=36.02 view=0.93 db=2.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment