asafdav / ng-s3upload

Upload to S3 using AngularJS
MIT License
190 stars 83 forks source link

Original filename #69

Open steverob opened 8 years ago

steverob commented 8 years ago

Hi, how do I retain the original file name? Although the docs say

targetFilename - An optional attribute for the target filename. if provided the file will be renamed to the provided value instead of having the file original filename.

it uses a random string for the file name as per https://github.com/asafdav/ng-s3upload/blob/master/src/ng-s3upload/directives/s3-upload.js#L73

Is this expected? I just want to retain the original filename in the S3 key. Thanks! :)