So, I have an application where a user has to upload a post through the ACS. I am giving them the choice of uploading one of their own pictures or if the want to use a default one, which I have located locally. When they chose the default picture, the simulator uploads the image just fine, and everything works. But when im trying on my iPhone, it says that the image cant be located, how come? I am using this code to grab the image:
var f = Ti.Filesystem.getFile('images/bgpost.png'); var defaultblob = f.read(); defaultimage.image = defaultblob;The image is basically stored in almost every folder I have in order to test everything. Right now it is stored in /Resources/iphone/images/bgpost.png because, but that wont help either.
I am receiving this warning from ACS: Failed to upload image. Cant locate image file type.
var f = Ti.Filesystem.getFile('/images/bgpost.png');
Think you can help? Login to answer this question!