Sha256: b0e76ed0d2e212d3c6e30ca3fa2ee35b4d81049f7859f558ae733a2f05386675

Contents?: true

Size: 382 Bytes

Versions: 25

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true
json.files [@upload] do |uploaded_file|
  json.id uploaded_file.id
  json.name uploaded_file.file.file.filename
  json.size uploaded_file.file.file.size
  # TODO: implement these
  # json.url  "/uploads/#{uploaded_file.id}"
  # json.thumbnail_url uploaded_file.id
  json.deleteUrl hyrax.uploaded_file_path(uploaded_file)
  json.deleteType 'DELETE'
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/views/hyrax/uploads/create.json.jbuilder
hyrax-5.0.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-5.0.0.rc3 app/views/hyrax/uploads/create.json.jbuilder
hyrax-5.0.0.rc2 app/views/hyrax/uploads/create.json.jbuilder
hyrax-5.0.0.rc1 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.6.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-4.0.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-4.0.0.rc3 app/views/hyrax/uploads/create.json.jbuilder
hyrax-4.0.0.rc2 app/views/hyrax/uploads/create.json.jbuilder
hyrax-4.0.0.rc1 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.5.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-4.0.0.beta2 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.4.2 app/views/hyrax/uploads/create.json.jbuilder
hyrax-4.0.0.beta1 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.4.1 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.4.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.3.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.2.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.1.0 app/views/hyrax/uploads/create.json.jbuilder
hyrax-3.0.2 app/views/hyrax/uploads/create.json.jbuilder