I am encountering an issue that all photos were taken by my Corona app always show same file name as "picture1, picture2, picture3 … etc ", while In my code the image name should be “image.jpg”
I’ve been googling as well as seeking help from corona labs, now I am completely stuck.
local function onComplete ( event ) local photo = event.target local photoGroup = display.newGroup() photoGroup:insert(photo) local temDirecoty = system.TemporaryDirectory display.save(photoGroup, "image.jpg", temDirecoty) end local function handleButtonEvent2 ( event ) media.capturePhoto({ listener = onComplete --[[destination = { baseDir=system.TemporaryDirectory, filename="image.jpg", type="image" }]]-- }) end
Can anyone help me out of this? Thank you for any instruction