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

Cannot obtain a URL when uploading local file #10566

Closed
5 tasks done
gaozhengzhou opened this issue Nov 12, 2024 · 2 comments
Closed
5 tasks done

Cannot obtain a URL when uploading local file #10566

gaozhengzhou opened this issue Nov 12, 2024 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@gaozhengzhou
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.11.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

workflow:
image
image

upload local file:
image

paste file link:
image

logs:
image
image

✔️ Expected Behavior

The expectation is that both locally uploaded files and remote linked files can obtain a URL.

❌ Actual Behavior

Cannot obtain a URL when uploading local file.

Copy link

dosubot bot commented Nov 12, 2024

@gaozhengzhou Hello! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together!

There are similar issues and discussions related to the problem of not being able to obtain a URL when uploading a local file in a self-hosted Dify setup:

  1. Closed Issue: Unable to retrieve url from file - This issue was resolved by a pull request that fixed the error of being unable to retrieve the URL from a file.

  2. Closed Issue: Unable to read the URL variable from the file - The solution involved ensuring that environment variables are correctly loaded from the .env file or set directly in the docker-compose.yaml file. It's important to verify that these files are correctly set up and that the DifyConfig is properly loading them.

  3. Closed Issue: file not found error when upload file - The solution was to set the STORAGE_TYPE to local and ensure the STORAGE_LOCAL_PATH is properly defined and mounted. This involves configuring the Docker setup to mount the storage directory correctly and ensuring appropriate permissions and ownership settings.

You might want to check if your environment variables and Docker configurations are set up as described in these solutions. This could help resolve the issue of not being able to obtain a URL for locally uploaded files [1][2][3].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 12, 2024
@crazywoola
Copy link
Member

Duplicated #9567
I've pinned this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants