My main problem now is that when status = queued, the url property is also 
null. 
I can't find any Arches code that even hints at setting these properties, 
except in datatypes.FileListDataType where status is set to "uploaded":
https://github.com/archesproject/arches/blob/07d5ac0652af60f435ff1316ee7d26c06c9e0e56/arches/app/datatypes/datatypes.py#L948


On Thursday, 11 October 2018 16:58:48 UTC+2, Adam Cox wrote:
>
> Hi Vincent, this touches on something we at Legion GIS came across 
> recently, while trying to include file pathsd in a CSV upload. Turns out 
> that because the actual upload process isn't run, even if the files exist 
> in the file system before the import their status is never updated to 
> "uploaded". Our first work around is a management command that goes in 
> after the fact and manually changes all statuses to "uploaded".
>
> This is only tangentially related to your question, as it doesn't address 
> the "queued" value, but I wanted to mention it because ultimately we too 
> are wondering what the status property is for...
>
> On Thursday, October 11, 2018 at 3:06:05 AM UTC-5, Vincent Meijer wrote:
>>
>> 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