Tag: angular file upload

使用angular-file-upload将文件发布到gridfs后获取数据

我从我的控制器发布文件到我的服务器,在这里gridfs写入它们。 之后,有一个writestream.on('close'),我可以console.log file._id到terminal。 我怎样才能在我的angular度控制器中设置一个variables到file._id? 服务器不知道angular度是什么,所以我怎样才能访问它? 此外,angular度file upload自动使post,所以我不知道如何添加callback。 https://github.com/nervgh/angular-file-upload

将带有图像的angular度file upload请求传递到node.js中的Azure

我几乎有这个工作。 我使用angular-file-upload( http://nervgh.github.io/pages/angular-file-upload/examples/image-preview/ )将file upload到nodejs服务器,然后将其传递给Azure。 router.post('/storeimg', function (req, res, next) { //create write stream for blob var blobSvc = azure.createBlobService(); blobSvc.createContainerIfNotExists('images', function (error, result, response) { if (!error) { // Container exists and allows // anonymous read access to blob // content and metadata within this container var stream = blobSvc.createWriteStreamToBlockBlob( 'images', 'test.png'); //pipe req […]