Project

General

Profile

Improvements #10382

Allow different upload mechanism for WFileDropWidget

Added by Raf Pauwels about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/19/2022
Due date:
% Done:

0%

Estimated time:

Description

To allow to use a custom upload mechanism in WFileDropWidget (tus), we need a couple of modifications. Changes are minimal, mostly these allow for some overrides/redefinitions.

In WFileDropWidget.js:

  • Allow for override of requestsend signal (dropwidget.emitRequestSend())
  • Allow for override of dropwidget.getSendFn callback (dropwidget.getSendFn())
  • Add parameters to actualSend and workerSend to allow definition from another context

In WFileDropWidget.C:

  • Allow custom creation of an upload resource in WFileDropWidget::handleSendRequest() and make it accessible

Files

No data to display

Also available in: Atom PDF