-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Uploading empty file: Permission denied #601
Comments
Same problem here - I tried the simple example from the README.md docs: # started the container
docker run --publish 8080:8080 dutchcoders/transfer.sh:latest-noroot --provider local --basedir /tmp/
# tried to upload a random file
curl -v \
--upload-file ./README.md \
https://localhost:8080/README.md CURL:
Container LOG:
|
I also tried the same thing with the |
thanks for the report, I'll check on it |
I fixed the issues by mapping the volume from host to container. Example: |
I've tried adding HTTP/2 400
content-type: text/plain; charset=utf-8
server: Transfer.sh HTTP Server
x-content-type-options: nosniff
x-made-with: <3 by DutchCoders
x-served-by: Proudly served by DutchCoders
date: Sun, 07 Apr 2024 07:11:19 GMT
content-length: 28
Could not upload empty file Logfile says:
|
If you run as I posted, first, you must create a directory "tmp" in your current directory. My reply is just trying to explain that you need to make sure the directory exists in the container and you have mapped it on the host. Good luck |
I created the directory before and set the uid and gid both to 5000. Permission is 0775. I can upload any non-empty file. Except for empty files I got the mentioned error. I think this is fine. Sharing empty files is a bit of useless, so this error don't need to be fixed. Besides, with this setup the error code changed from 500 to 400. |
I started transfer.sh in a container with this arguments:
--provider=local
,--basedir=/data/
When I upload an empty file, I got this error:
Same message appears in log.
Tested with this command:
curl -sST /dev/null -i http://localhost/null
Image used:
dutchcoders/transfer.sh:latest-noroot
Image ID:
4d51e3998a08
The text was updated successfully, but these errors were encountered: