Skip to content

Conversation

vmrfriz
Copy link

@vmrfriz vmrfriz commented Jul 26, 2025

Problem: When starting with tus:start and trying to upload a file, I got errors in the console saying that the pre-create file wasn't executable. The solution was to manually execute chmod +x vendor/oneofftech/laravel-tus-upload/hooks/*.

The error when uploading looked like this:

ERROR output -----------------
[tusd] 2025/07/26 04:36:12 event="HookInvocationError" type="pre-create" id="" error="master/exec /var/www/laravel/vendor/oneofftech/laravel-tus-upload/hooks/linux/pre-create: permission denied"

Now, when starting tus:start, it will be checked that the hooks/linux/* files have execution rights. If there are no rights, they will be given.

Perhaps I was too hasty by not checking for the operating system and not testing on Windows. But I decided to leave it here for your comments or revision.

Checking and granting execution permissions for bash scripts. Tested only on Linux
@avvertix
Copy link
Contributor

Thanks for your contribution! I'll check it out as soon as I can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants