You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/23 11:08:43 UTC

[GitHub] [cordova-plugin-file-transfer] saifuldhaka opened a new issue #240: how to update file name dynametically when upload in ionic 4

saifuldhaka opened a new issue #240: how to update file name dynametically when upload in ionic 4
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/240
 
 
   hi, i am using Ionic 4 with angilar 7 in my project. currently i am facing difficulties on upload image. it works fine with static name like
   
   ```
   let options: FileUploadOptions = {
            fileKey: 'file',
            fileName: 'name.jpg',
            headers: {}
            .....
         }
   ```
   
   it working fine. but i need dynamic name. so i updated accordingly
   
   ```
       this.temp_image_name = new Date().getTime()+'.jpg';
       this.temp_image_name =  new Date().getTime()+'.jpg';
       let options: FileUploadOptions = {
            fileKey: 'file',
            fileName: this.temp_image_name,
            headers: {}
            .....
         }
   ```
   
   but it not working and file name return empty. have any idea on this issue. Thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org