display.save cannot overwrite new photo when taken by ios Camera

Hi,
I wasn't sure if it is my code or a bug on display.save. I'm a new bie on Corona and just wondering if someone can help me with this issue? Thanks.

Here is the code to to check out the issue:
http://db.tt/IBeyJo8A

Steps:
1) Click on the Camera on the Grass background.
2) Take a picture.
3) The picture will drop down animated.
4) Click on Camera on Grass again
5) Take a 2nd picture.

Issue:
U will see that the first picture drop down

Expected:
I assume it will drop the 2nd picture instead.
system.DocumentsDirectory where the "newPhoto.jpg" did not get overwritten.

Environment:
Tested it on ios4 device and Corona Build 648.

Can someone please help me on this issue? thanks.

if you want to overwrite the file, delete the first file (using os.remove) before you write the second file.

cheers,

?:)

views:1442 update:2011/11/10 9:30:09
corona forums © 2003-2011