Class | Fog::Storage::AWS::File |
In: |
lib/fog/aws/models/storage/file.rb
|
Parent: | Fog::Model |
body | [W] | |
multipart_chunk_size | [RW] |
@note Chunk size to use for multipart uploads.
Use small chunk sizes to minimize memory. E.g. 5242880 = 5mb |
Destroy file via http DELETE.
required attributes: directory, key
@param options [Hash] @option options versionId [] @return [Boolean] true if successful
Save file with body as contents to directory.key with name key via http PUT
required attributes: body, directory, key
@param [Hash] options @option options [String] acl sets x-amz-acl HTTP header. Valid values include, private | public-read | public-read-write | authenticated-read | bucket-owner-read | bucket-owner-full-control @option options [String] cache_controle sets Cache-Control header. For example, ‘No-cache’ @option options [String] content_disposition sets Content-Disposition HTTP header. For exampple, ‘attachment; filename=testing.txt’ @option options [String] content_encoding sets Content-Encoding HTTP header. For example, ‘x-gzip’ @option options [String] content_md5 sets Content-MD5. For example, ‘79054025255fb1a26e4bc422aef54eb4’ @option options [String] content_type Content-Type. For example, ‘text/plain’ @option options [String] expires sets number of seconds before AWS Object expires. @option options [String] storage_class sets x-amz-storage-class HTTP header. Defaults to ‘STANDARD’. Or, ‘REDUCED_REDUNDANCY’ @option options [String] encryption sets HTTP encryption header. Set to ‘AES256’ to encrypt files at rest on S3 @return [Boolean] true if no errors