@benbusse , @toddappleton, @jeffreystables
I am unable to get a file uploaded without it being corrupted to the File storage using the Angular JS File API.
Pleas tell me how to get this uploaded?
Below is the code for the same.
I am uploading this from the camera plugin from a mobile, but even if I directly go and upload from your API_DOCs its failing, which signals me that I am doing something wrong.
It is a small png file, which I am assigning to a body variable and then calling the following:-
var request={};
request.container = “container_name”;
request.file_path = “/image23.png”;
request.body=body;
DreamFactory.api.files.createFile(request);
This without fail corrupts the file. It gets uploaded though.
Can you please correct the mistake I am making.
var body="âPNG
Here above, I had actually pasted the whole content of a small png file, but it vanished, may be due to some invalid characters.