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

413 (Payload Too Large) #340

Closed
Extroonie opened this issue Jan 9, 2024 · 8 comments
Closed

413 (Payload Too Large) #340

Extroonie opened this issue Jan 9, 2024 · 8 comments

Comments

@Extroonie
Copy link

Extroonie commented Jan 9, 2024

Problem

It seems like I cannot upload files larger than 1 MB.

image

Dufs config:

serve-path: 'files'
bind: 0.0.0.0
port: 1351
path-prefix:
hidden:
  - tmp
  - '*.log'
  - '*.lock'
auth:
  - user:pass@/:rw
  - '@/'  # According to the YAML spec, quoting is required.
allow-all: false
allow-upload: true
allow-delete: true
allow-search: true
allow-symlink: true
allow-archive: true
enable-cors: true
render-index: true
render-try-index: true
render-spa: true
assets:
log-format: '$remote_addr "$request" $status $http_user_agent'
compress: low
tls-cert:
tls-key:

Log

image

Environment:

  • Dufs version: 0.38.0
  • Browser/Webdav Info: Brave and Firefox
  • OS Info: Linux Mint 21.2
@sigoden
Copy link
Owner

sigoden commented Jan 9, 2024

Every file uploading generates a PUT request log, but your log shows that dufs didn't receive any PUT requests at all, which means dufs didn't receive the upload request at all.

2024-01-09T23:35:48Z INFO - 192.168.8.8 "GET /tmp/" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
2024-01-09T23:35:55Z INFO - 192.168.8.8 "WRITEABLE /tmp/" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
2024-01-09T23:35:55Z INFO - 192.168.8.8 "PUT /tmp/aichat.mp4" 201 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Please open the browser console (F12) to debug and see what's going on. @Extroonie

@sigoden sigoden closed this as completed Jan 10, 2024
@Extroonie
Copy link
Author

Hi, this is what's happening:

image

@sigoden
Copy link
Owner

sigoden commented Jan 10, 2024

Dufs never raise 413 error. are you using proxy service above dufs? @Extroonie

@Extroonie
Copy link
Author

Yes, cloudflare, @sigoden.

@sigoden
Copy link
Owner

sigoden commented Jan 10, 2024

@Extroonie
Copy link
Author

Extroonie commented Jan 10, 2024

The file I'm trying to upload is 17 MB.

image

Edit 1: I have also verified that the upload size limit is 100 MB through the cloudflare dashboard:

image

Edit 2: It seems like I can't upload a 1 MB file either:

image

image

@sigoden
Copy link
Owner

sigoden commented Jan 10, 2024

dufs did not receive the request, which was blocked by cloudflare,
I'm not familiar with cloudflare. You have to figure it out yourself.

@Extroonie
Copy link
Author

Extroonie commented Jan 10, 2024

I see. Thanks!

Edit: I fixed it by setting client_max_body_size 100M; in ngnix under server.

@Extroonie Extroonie changed the title Cannot upload jpg/mp4 files 413 (Payload Too Large) Jan 10, 2024
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

No branches or pull requests

2 participants