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
Aldevinas Katkus
Why it is impossible to delete an invoice row (created from an order) containing an item with reverse VAT?...
12:13 2 Jan 2025
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024