You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- json.id @attachment.uuid
- json.title @attachment.title
- json.filesize number_to_human_size(@attachment.filesize)
- json.is_pdf @attachment.is_pdf?
- json.url Rails.application.config_for(:configuration)['platform_url'] + (@attachment.is_pdf? ? download_url(@attachment,disposition:"inline") : download_url(@attachment)).to_s
- json.created_on @attachment.created_on.strftime("%Y-%m-%d %H:%M")
- json.content_type @attachment.content_type
|