As an author
I want to be notified of reasons if there is an error when I upload files
So that I know what is going on when workflow hit a snag
Acceptance test criteria
[ ] Update the container image being used
[ ] Rewrite the existing pre-create hook in the new format
[ ] Rewrite the existing post-finish hook in the new format
Additional infos
File change to : fuw/tusd/hooks/pre-create
you should be able to used directly the example from the Tusd project: https://github.com/tus/tusd/blob/main/examples/hooks/file/pre-create
File to change to : fuw/tusd/hooks/post-finish
Look at the process-upload implementation in fuw/app/console/controllers/TusdController.php for return code (ExitCode::CANTCREAT, ExitCode::DATAERR and ExitCode::OK)
user story
Acceptance test criteria
Additional infos
File change to :
fuw/tusd/hooks/pre-create
you should be able to used directly the example from the Tusd project:
https://github.com/tus/tusd/blob/main/examples/hooks/file/pre-create
File to change to :
fuw/tusd/hooks/post-finish
Look at the process-upload implementation in
fuw/app/console/controllers/TusdController.php
for return code (ExitCode::CANTCREAT
,ExitCode::DATAERR
andExitCode::OK
)See examples at https://github.com/tus/tusd/tree/main/examples/hooks/file
use HTTP status from https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
e.g:
ExitCode::OK
-> 200ExitCode::CANTCREAT
-> 500ExitCode::DATAERR
-> 401