# aws s3 module - multi part files

**URL:** <https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077>\
**Category:** Ansible Developer\
**Tags:** aws\
**Created:** [April 24, 2015, 2:41pm UTC](https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077 "2015-04-24T14:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Craft](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Andrew\_Craft](https://forum.ansible.com/u/Andrew_Craft)\
**Post date:** [April 24, 2015, 2:41pm UTC](https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077/1 "2015-04-24T14:41:22Z")

</div>

As discussed previously in the past on the list, the current AWS S3 module doesn’t work with files upload as multi-part (done automatically for example when using the awsCLI tools to sync a folder)

[https://github.com/ansible/ansible/issues/5442](https://github.com/ansible/ansible/issues/5442)

[https://groups.google.com/d/topic/ansible-project/Dg7aAmpoS2A/discussion](https://groups.google.com/d/topic/ansible-project/Dg7aAmpoS2A/discussion)

The current behaviour is that it fails if the file was upload as multi-part, propose a new attribute to the module called syncstrategy with following values:

- md5 (default) - same behaviour as now
- sizeandtime - use timestamp and filesize to see if files needs to be downloaded/uploaded (this is similar to native s3 sync command)
- sizeonly - use file size only to compare to see if files needs to be downloaded/uploaded (there is a similar option native s3 sync command)

Does this sound like a reasonable approach if so I can submit a PR?

thanks

Andy

---

<div class="post-metadata">

**Author:** ![Andrew\_Craft](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Andrew\_Craft](https://forum.ansible.com/u/Andrew_Craft)\
**Post date:** [June 19, 2015, 2:44pm UTC](https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077/2 "2015-06-19T14:44:07Z")

</div>

Is this a reasonable suggestion, would a pull request be considered if i implemented theses changes?

thanks  
Andrew

---

<div class="post-metadata">

**Author:** ![Jonathan\_Davila](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@Jonathan\_Davila](https://forum.ansible.com/u/Jonathan_Davila)\
**Post date:** [June 29, 2015, 6:11pm UTC](https://forum.ansible.com/t/aws-s3-module-multi-part-files/18077/3 "2015-06-29T18:11:28Z")

</div>

This would be considered, yes.
