Open matrixreal opened 7 years ago
Hi,
thanks a lot
i will give it a try later
De : HassanCehef notifications@github.com Envoyé : lundi 20 mars 2017 11:21:56 À : EddyVerbruggen/SocialSharing-PhoneGap-Plugin Cc : MATRIX.REAL; Author Objet : Re: [EddyVerbruggen/SocialSharing-PhoneGap-Plugin] saving files with specific names ? (#777)
Hi,
I suppose you asked how to assign a specific filename to an attachment? If so, reading the source helped me solve your issue. Relevant code: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/blob/master/src/ios/SocialSharing.m#L738
Solution: SocialSharing.share(null, 'subject', ['data:application/pdf;df:myOwnName.pdf;base64,JVEERi0.....']
Here, I declare an attachment, which is a pdf. I specify the name with df:NAME.extension. I use the ; as a separator between the MIME type and the filename.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/777#issuecomment-287733054, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGggJvrbyVhpd_0E-8lgmH_tE6IWawJFks5rnmFUgaJpZM4L_kIj.
Hi,
i'm using this call to save 2 files (.jpg and .mov) (an image and a video)
window.plugins.socialsharing.saveToPhotoAlbum( ['www/1.jpg','www/1.mov'], onSuccess, // optional success function onError // optional error function );
the problem is that , it saved it to camera roll but with different name
i want to set same name to those 2 files something like 1.jpg and 1.mov or something other but the jpg and mov should have same name
thanks for help
De : HassanCehef notifications@github.com Envoyé : lundi 20 mars 2017 11:21:56 À : EddyVerbruggen/SocialSharing-PhoneGap-Plugin Cc : MATRIX.REAL; Author Objet : Re: [EddyVerbruggen/SocialSharing-PhoneGap-Plugin] saving files with specific names ? (#777)
Hi,
I suppose you asked how to assign a specific filename to an attachment? If so, reading the source helped me solve your issue. Relevant code: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/blob/master/src/ios/SocialSharing.m#L738
Solution: SocialSharing.share(null, 'subject', ['data:application/pdf;df:myOwnName.pdf;base64,JVEERi0.....']
Here, I declare an attachment, which is a pdf. I specify the name with df:NAME.extension. I use the ; as a separator between the MIME type and the filename.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/777#issuecomment-287733054, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGggJvrbyVhpd_0E-8lgmH_tE6IWawJFks5rnmFUgaJpZM4L_kIj.
any hints ?
Hi, i would like to know how can i save images / files with specific names ? thanks