I am creating a script to be able to generate a zip file with the upload of files. Initially I have a file upload widget, to then be able to create the zip file with those files. Right now I'm creating a zip, but when it's added to the upload widget it does not work. Some help?
var promise = null;
function create_zipNuevo() {
var zip = new JSZip();
zip.file("hello.txt", "Hello World\n");
if (JSZip.support.uint8array) {
promise = zip.generateAsync({type : "uint8array"});
}
else {
promise = zip.generateAsync({type : "string"});
}
}
function uploadZip(){
id_uploadfileautomatically.selectFile(promise.PromiseValue);
id_uploadfileautomatically.upload();
}
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d4cfb214-4e19-404e-9004-7edc6e416ff8%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/5522801f-83c8-4955-a751-82fda0a52392%40runmyprocess.com.