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

Upload can't handle more than 1Mb #6637

Open
goveebee opened this issue Nov 12, 2024 · 1 comment
Open

Upload can't handle more than 1Mb #6637

goveebee opened this issue Nov 12, 2024 · 1 comment

Comments

@goveebee
Copy link

Describe the bug
I'm trying to upload image files using the upload function in the GUI. There seems to be a limit of 1Mb, before there's a "Payload too large" error. Can I increase that limit?

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Import'
  2. Click on 'Upload files'
  3. Select files with a total of more than 1Mb.
  4. See error

Expected behavior
Posibillity to upload more/larger files.

Screenshots

Environment (please complete the following information):

  • OS: Kubernetes
  • Label Studio Version [e.g. 1.14.0]
@heidi-humansignal
Copy link
Collaborator

heidi-humansignal commented Nov 12, 2024

Hello,

To resolve this issue and increase the maximum upload size, please try the following steps:

  1. Adjust Nginx Configuration (If applicable):
    If you're using Nginx as a reverse proxy in your Kubernetes deployment, you may need to adjust the client_max_body_size directive to allow larger file uploads.
    Add or modify the following in your Nginx configuration:

http { ... client_max_body_size 100M; ... }

This sets the maximum allowed size of client request bodies to 100 MB. Adjust the value as needed.

  1. Adjust Django Settings in Label Studio:
    Label Studio uses Django, which has settings controlling the maximum upload size. You can increase the upload limit by setting the DATA_UPLOAD_MAX_MEMORY_SIZE environment variable. This variable specifies the maximum size (in bytes) that a request body may be before it's streamed to the file system.
    Set the environment variable to a higher value (e.g., 100 MB):

DATA_UPLOAD_MAX_MEMORY_SIZE=104857600 # 100 MB

Thank you,
Abu

Comment by Abubakar Saad
Workflow Run

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

No branches or pull requests

2 participants