Sha256: 86fdace205bea7e9db76cd3d4bd891f32e85cb714117e84ce5325935a623531f
Contents?: true
Size: 525 Bytes
Versions: 35
Compression:
Stored size: 525 Bytes
Contents
module Main 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 end
Version data entries
35 entries across 35 versions & 1 rubygems