diff options
Diffstat (limited to 'src/js/views')
-rw-r--r-- | src/js/views/photo.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/views/photo.js b/src/js/views/photo.js index 0c308a8..6a2b8f6 100644 --- a/src/js/views/photo.js +++ b/src/js/views/photo.js @@ -48,10 +48,11 @@ // images where they are stored on the filesystem so if you move, and then delete // them, you are moving and deleting the only copy of them which is likely to be // surprising and unwelcome so we copy them instead. + var fileName = CONFIG.NAMESPACE + '_' + this.model.cid + '_' + moment().unix() + '.jpg'; if ( FMS.isAndroid ) { - move = FMS.files.copyURI( imgURI ); + move = FMS.files.copyURI( imgURI, fileName ); } else { - move = FMS.files.moveURI( imgURI ); + move = FMS.files.moveURI( imgURI, fileName ); } var that = this; |