-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saving files with specific names ? #777
Comments
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 GitHub<#777 (comment)>, or mute the thread<https://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 GitHub<#777 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGggJvrbyVhpd_0E-8lgmH_tE6IWawJFks5rnmFUgaJpZM4L_kIj>.
|
any hints ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
i would like to know how can i save images / files with specific names ?
thanks
The text was updated successfully, but these errors were encountered: