Upload functionality — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood: Oracle Cloud SCM and Purchasing

Upload functionality

edited Aug 10, 2020 12:46PM in Visual Builder 5 comments

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!