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

Version Path
volt-0.9.7.pre8 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.7.pre7 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.7.pre6 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.7.pre5 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.7.pre3 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.7.pre2 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.6 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.6.pre3 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.6.pre2 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.6.pre1 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre12 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre11 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre9 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre8 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre7 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre6 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre5 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre4 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb
volt-0.9.5.pre3 spec/apps/kitchen_sink/app/main/controllers/upload_controller.rb