Cordova file management (Any chance for Apple rejection?)
I am making an application using Phonegap where users can select and share files. When the user selects it, even if it goes offline or closes the app, I should upload it back to the server, so I need to store the reference file path.
- User selects/captures video or image using Camera.
- File may not contain extension to name in Android every time and in iOS when selected from Gallery.
- So get mimeTypeGet
mimeType
and then copy the file to myApp's folder with a new name and extension. - Then again get mimeType
mimeType
and return.
Cordova file management (Any chance for Apple rejection?)
I am making an application using Phonegap where users can select and share files. When the user selects it, even if it goes offline or closes the app, I should upload it back to the server, so I need to store reference file path.
- User selects/captures video or image using Camera.
- File may not contain extension to name in Android every time and in iOS when selected from Gallery.
- So get mimeType and then copy the file to myApp's folder with a new name and extension.
- Then again get mimeType and return.
Cordova file management
I am making an application using Phonegap where users can select and share files. When the user selects it, even if it goes offline or closes the app, I should upload it back to the server, so I need to store the reference file path.
- User selects/captures video or image using Camera.
- File may not contain extension to name in Android every time and in iOS when selected from Gallery.
- Get
mimeType
and then copy the file to myApp's folder with a new name and extension. - Then again get
mimeType
and return.
I am making aan application using Phonegap where users can select and share files. When the user selects it, even if it goes offline or closecloses the app, I should upload it back to the server, so I need to store reference file path. So below are steps and code
Steps I have used:
But my question is also, whether isIs it correct to copy a file andto another location whenever the user selects a media file.
Code?
I am making a application using Phonegap where users can select and share files. When user selects it even if goes offline or close the app I should upload it back to the server, so I need to store reference file path. So below are steps and code I have used
But my question is also, whether is it correct to copy file and another location whenever user selects a media file.
Code
I am making an application using Phonegap where users can select and share files. When the user selects it, even if it goes offline or closes the app, I should upload it back to the server, so I need to store reference file path.
Steps I have used:
Is it correct to copy a file to another location whenever the user selects a media file?