Working with Minio & Azure (missing Team management)

This commit is contained in:
Luis Fernando Molina committed 2019-04-06 21:24:06 +02:00
1 parent 32d4444782
commit a92ccff265
4 files changed
+135 -79

No files matched your search

+29 -5
View File
@@ -78,7 +78,35 @@
let blobService = storage.createBlobService(connectionString);
blobService.getBlobToText('aaplatform', pOrg + "/" + pPath + "/" + pFile, onFileReceived);
let pParam1 = pOrg;
let pParam2 = pPath;
let pParam3 = pFile;
let container = 'aaplatform';
let azurePath = pOrg + "/" + pPath + "/" + pFile;
let bucketName = 'aaplatform';
let textFilename;
if (pParam1 === undefined) {
/* This is used when the requests come from the browser, for background compatibility. */
container = pParam3;
azurePath = pParam2;
bucketName = pParam3;
textFilename = pParam2.substring(pParam2.indexOf("/") + 1, pParam2.length);
} else {
/* This is used for internal requests within AAWeb, for background compatibility. */
bucketName = 'aaplatform';
textFilename = pParam1 + "/" + pParam2 + "/" + pParam3;
}
blobService.getBlobToText(container, azurePath, onFileReceived);
function onFileReceived(err, text, response) {
@@ -113,10 +141,6 @@
try {
let bucketName = 'aaplatform';
let textFilename = pOrg + "/" + pPath + "/" + pFile;
minioClient.putObject(bucketName, textFilename, text, 'text/plain', function (err) {
if (err) {
console.log("ERROR AT MINIO SERVER PUTTING OBJECT : " + err);