Hi Steffen,
I might be able to help on that.
For the first issue, you should set the folder 12 as public, that should fix the access issue. In may case, in the service definition, I have set the folders m6u, m6q, m6c as public. everything inside is visible directly in the browser.
For the second issue, I think that the images are not correctly uploaded from angular.
I had some issues too. now I'm using ng-file-upload (https://github.com/danialfarid/ng-file-upload) and it works like a charm. This is the method to upload an image:
data.uploadImage = function (blob, uploadUrl, fileName) {
Upload.http({
url: uploadUrl,
headers : {
"Content-Type": "image/png",
"X-File-Name": fileName
},
processData: false,
data: blob
}).then(function (resp) {
//$rootScope.$broadcast('camera.upload');
}, function (resp) {
//$rootScope.$broadcast('camera.upload');
}, function (evt) {
var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);
console.log('progress: ' + progressPercentage + '% ');
});
}
I hope this helps
Gabriel