Ticket #258 (new defect)

Opened 3 months ago

Last modified 1 month ago

new upload-control needs heartbeat

Reported by: mpo Assigned to: mpo
Priority: major Milestone: 0.4
Component: < Upload Control Version: trunk
Keywords: Cc:

Description

The new upload-service will automatically remove untouched files after some time (default refresh-time is 5 minutes)

While being ok for a lot of use cases probably this isn't a really nice solution in the long run.

Provisioning (i.e. empty methods called at the correct times) is foreseen to implement a heartbeat mechanism that will ensure the client/control keeps the data touched while the uploaded-file is sent over but the form is not yet submitted / handled finally.

Additionally there could be a natural setting for the file-upload-store to just survive not having any lease-service set (by just not expiring the received files) - in sync with the previous kauri-upload module (after which that module should be removed)

There are a number of work around's today:

  • use that older kauri-upload service again
  • increase the refreshtime in the lease-service conf/kauri-tmprsrc/upload.xml

Change History

12/12/09 10:41:28 changed by mpo

Just realized the URL to call for the update is the one the returns the getInfo() from the file-upload-store

It looks like this: /kauri/upload/{key}/info.json strictly speaking a HEAD call on this will be enough

In the upload.js I'ld suggest creating an infoRef(key) function similar to the current dataRef(key)

02/02/10 07:50:13 changed by jgou

  • component changed from -- unknown -- to < Upload Control.