Re: Re: WebShop File Upload
Lee D Papworth
1-3-20
Paul,

I have been looking at that. It uses server sided javascript to call hal.

Snippet of code I lifted from the partner portal.

function FileUpload(wrap,filesinp,tag,id,callback)
{
this.started = false;
this.totfiles = 0;
this.donefiles = 0;

this.DouploadChunk = function(file,start,end,filesize, BYTES_PER_CHUNK,progress,sess,blob,callback){
var self = this;
var xhr = new XMLHttpRequest();
xhr.open('POST', "/WebFileUpload.hal?action=doupload&sess=" + sess + "&part=" + start +"&nocache="+new Date().getTime(), true);
xhr.upload.onprogress = function (e) {

};
xhr.onloadend = function (e) {
};
var blob = file.slice(start,end);



Could really do with some guidance on this. I have mentioned Xhr in this thread already but no one took it further

Lee
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Piotr Wycichowski
Thanks Gatis, anyway it seems to be reported as bug instead of wish because now it depends on who created task for whom, am I right? /Piotr W....
14:39 15 May 2024
Aldevinas Katkus
Actually a new version of this bug is SL>>Reports>>Periodic customer statement "accumulates" amounts Not sure why it was duplicated, I clicked "submit"only once....
08:09 10 May 2024