abashev / vfs-s3

Amazon S3 driver for Apache commons-vfs (Virtual File System) project
Apache License 2.0
92 stars 50 forks source link

Incorrect S3 metadata for content type, last accessed time and content length. #68

Closed deyant closed 4 years ago

deyant commented 4 years ago

All uploaded files have content-type = application/octet-stream. Mime type is not properly set before uploading in ObjectMetadataHolder.

A quick patch fixes the problem, see attached file.

Use_correct_ObjectMetadata_instance_in_withContentType,_withLastModifiedNow_and_withConten.patch.zip

abashev commented 4 years ago

@deyant could you please post it as PR?