Sha256: 2b69ec07fbd2fcc24b15dd0faad43abb3bdf1bf32cfbf6d95a6be700f4adace9

Contents?: true

Size: 1.92 KB

Versions: 7

Compression:

Stored size: 1.92 KB

Contents

%head
  %title Sample 4 - How to download a file from GroupDocs Storage using the Storage API
  %link(rel="stylesheet" type="text/css" href="/css/style.css")
  %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
%body
  %h3{:style => 'text-align:center;'}
    %a{:href => '/'} GroupDocs Ruby SDK Samples
    %br/
    Sample 4 - How to download a file from GroupDocs Storage using the Storage API
  .samplecontent{:style => 'padding:10px;'}
    %i This sample will show how to download particular file from GroupDocs account using Ruby SDK
    %br/
    %br/
    %span.documentation
      %a{:href => '/docs/sample04.html'} Builtin documentation for this sample
    %br/
    %br/
    %p
      You entered:
    %p
      UserId = #{(defined? clientId) ? clientId : ''}
    %p
      PrivateKey = #{(defined? privateKey) ? privateKey : ''}
    %p
      FileId = #{(defined? fileId) ? fileId : ''}
    %p
      %font{:color => 'red'} #{(defined? err) ? err : ''}
    #requestForm{:style => 'padding:20px; border:1px solid black;'}
      %p Enter data for request and press "Download" button
      %form{:action => '/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api', :enctype => 'multipart/form-data', :method => 'post'}
        %label{:for => 'clientId'} GroupDocs ClientID
        %br/
        %input{:type=>'text', :name=>'clientId'}
        %br/
        %label{:for => 'privateKey'} GroupDocs PrivateKey
        %br/
        %input{:type=>'text', :name=>'privateKey'}
        %br/
        %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
        %br/
        %input{:type=>'text', :name=>'fileId'}
        %br/
        %label{:for => 'basePath'} Base Path
        %span{:class => 'optional'} (Optional)
        %br/
        %input{:type=>'text', :name=>'basePath'}
        %br/

        %input{:type => 'submit', :value => 'Download'}/
      #{(defined? massage) ? massage : ''}
    %br/

  = partial :_others_samples


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
groupdocs-2.2.0 examples/api-samples/views/sample04.haml
groupdocs-2.1.0 examples/api-samples/views/sample04.haml
groupdocs-2.0.0 examples/api-samples/views/sample04.haml
groupdocs-1.9.0 examples/api-samples/views/sample04.haml
groupdocs-1.8.1 examples/api-samples/views/sample04.haml
groupdocs-1.8.0 examples/api-samples/views/sample04.haml
groupdocs-1.7.0 examples/api-samples/views/sample04.haml