Class: AzureDirectUpload::UploadController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AzureDirectUpload::UploadController
- Defined in:
- app/controllers/azure_direct_upload/upload_controller.rb
Instance Method Summary collapse
Instance Method Details
#commit ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/azure_direct_upload/upload_controller.rb', line 3 def commit bs = Azure::Blob::BlobService.new block_list = (0..blockno).collect{|i| [sprintf("%05d", i)]} bs.commit_blob_blocks(container_name, blob_name, block_list) render response_hash end |