Thanks for the quick answer, indeed, i was trying to save the file in a subfolder inside the app's folder, problem solved :)