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

fix: check force script name #425

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CraigMChen
Copy link

According to the following code in repo label-studio

@property
def url(self):
    if settings.FORCE_SCRIPT_NAME and not (settings.HOSTNAME and settings.CLOUD_FILE_STORAGE_ENABLED):
        return settings.FORCE_SCRIPT_NAME + '/' + self.file.url.lstrip('/')
    else:
        return self.file.url

The file path is prefixed with settings.FORCE_SCRIPT_NAME if script name is not null. The SDK should consider this situation when checking whether a file is an uploaded file.

@github-actions github-actions bot added the fix label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant