Upload functionality
Content
Hi Everyone,
Can we upload a file using VBCS?
I have tried it with the Filepicker component and some JAVASCRIPT code.
define([], function() {
'use strict';
var PageModule = function PageModule() {};
PageModule.prototype.parseUploadedFile = function(fileSet){
return "Not the real data";
} return PageModule;
});
After uploading the file, it is showing "Not the real data".
I have also tried with some other JAVASCRIPT code as below, but it is not uploading a file(neither showing file content nor file details).
define([], function() {
'use strict';
var PageModule = function PageModule() {};
PageModule.prototype.parseUploadedFile = function(fileSet){
var readDataPromise = new Promise(function(resolve) {
if (fileSet.length > 0) {
Tagged:
0