1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Merge pull request #63 from byterussian/mock_for_post_object_hidden_fields

Mock method for AWS S3 post_object_hidden_fields
This commit is contained in:
Wesley Beary 2015-03-04 14:42:05 -06:00
commit 0d61c7da34

View file

@ -1,7 +1,7 @@
module Fog
module Storage
class AWS
class Real
module PostObjectHiddenFields
# Get a hash of hidden fields for form uploading to S3, in the form {:field_name => :field_value}
# Form should look like: <form action="http://#{bucket_name}.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
# These hidden fields should then appear, followed by a field named 'file' which is either a textarea or file input.
@ -49,6 +49,12 @@ module Fog
options
end
end
class Real
include PostObjectHiddenFields
end
class Mock
include PostObjectHiddenFields
end
end
end
end