Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-183: TUS-PHP/JS Uploader for webform files #185

Open
wants to merge 15 commits into
base: 1.5.0
Choose a base branch
from
Open

Conversation

DiegoPino
Copy link
Member

See #183. WIP, means marking as a draft for now

(v2.4 as of today really)
@DiegoPino DiegoPino added enhancement New feature or request UI/UX The thing people do when in front of a screen Webform Elements Things with input to fill and interact with while ingesting metadata Javascript Because they got 'includes' a few years ago labels Jan 30, 2025
@DiegoPino DiegoPino added this to the 1.5.0 milestone Jan 30, 2025
@DiegoPino DiegoPino self-assigned this Jan 30, 2025
…upload

(TBH if the UUID is v4 (random) or seeded with a namespace as a UUIDV5 )
(well the user is in the file entity... but the webform might be useful)
Might also add later here some Tus upload cleanups
The integration is actually quite involved so i need to fix some data before
adding all the configs/options and HTML we need.
A lot is right now just fixed to test. I need to pass the actual
route to the Tus JS using
$url = Url::fromRoute('webform_strawberryfield.tus.upload_complete');
$token = \Drupal::csrfToken()->get($url->getInternalPath());
$url->setOptions(['absolute' => TRUE, 'query' => ['token' => $token]]);
$absolute_url = $url->toString()
Or, not use csrfToken ....
csrf token seems to be working
But i still need the actual refresh/reload these ones generate
But as they are, they are interfering with the TUS...
…S)...

that the file module provides though ... might just override the method?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Javascript Because they got 'includes' a few years ago UI/UX The thing people do when in front of a screen Webform Elements Things with input to fill and interact with while ingesting metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant