Sha256: c1d5e3e9de74b4ab5b8b642e7bbc4cc052cc24fa590853a3213aad303b48654c
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
class UploadController < Volt::ModelController model :page def index # Nothing to setup here end def upload `form_data = new FormData(); form_data.append("file", $('#file')[0].files[0]); $.ajax({ url: '/simple_http/upload', data: form_data, processData: false, contentType: false, type: 'POST', success: function(data){ $('#status').html("successfully uploaded"); } });` end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
volt-0.8.27.beta7 | spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb |