Sometimes after I uploaded a file and then try to display them in the 
frontend, the item has a status 'queued', where I would expect the status 
to be 'uploaded'.
This property is used e.g. in the Image Header template  (image.js):

if (item.status &&
item.type &&
item.status === 'uploaded' &&
item.type.indexOf('image') > -1 &&
_.contains(nodes, key)
) {
imgs.push({
src: item.url,
alt: item.name
});
}

I am using a similar approach on a custom template to read file names of 
uploaded zips:

if (item.status &&
item.status === 'uploaded' &&
(item.name.split('.').pop() == 'zip')
) {
potreeZipFiles.push({
src: item.url,
name: item.name
});
}


What is the function of this status property and why does it still have the 
'queued' value while the upload has already finished?

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to