if I want to modify the filename on S3 storage, first i need to call the filepicker.pick then filepicker.store . File is then uploaded but filename is not changed as I have specify in store function. Any idea why this is not done?
filepicker.pick
maxfiles: 1
maxSize: 20*1024*1024
mimetypes: ['image/*','document/*','text/*','application/pdf']
language: Translation.language()
services: ["COMPUTER","DROPBOX","URL","EVERNOTE","GOOGLE_DRIVE","SKYDRIVE"]
, (blob) ->
$(t.$('.filename')).val(blob.filename)
$(t.$('.awskey')).val(blob.key)
oldBlob=blob
filepicker.store blob,
location: 'S3'
path: "/"
container: 'bepisupportdocs.bepi-intl.org'
filename:blob.key.split('_')[1],
(new_blob) ->
filepicker.remove oldBlob
console.log JSON.stringify new_blob if debugThis
, Fp.uploadError