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

Uncaught TypeError: uploaderCtx.addFileFromCdnUrl is not a function #300

Open
j30ng opened this issue Dec 20, 2024 · 0 comments
Open

Uncaught TypeError: uploaderCtx.addFileFromCdnUrl is not a function #300

j30ng opened this issue Dec 20, 2024 · 0 comments

Comments

@j30ng
Copy link

j30ng commented Dec 20, 2024

Describe the bug

Widget (version 1) fails to display the previously uploaded file (photo). In the browser console I get the error message saying "Uncaught TypeError: uploaderCtx.addFileFromCdnUrl is not a function". https://github.com/uploadcare/pyuploadcare/blob/v6.0.0/pyuploadcare/dj/templates/uploadcare/forms/widgets/file.html#L12 seems to cause this error.

Expected behavior

If there are previously uploaded files/photos, they should be correctly added to the widget on load.

Code / screenshots

UPLOADCARE = {
    "pub_key": uploadcare_pub_key,
    "secret": uploadcare_secret,
    "widget": {
        "version": "1",
        "variant": "regular",
        "build": "min",
    },
}

Environment

  • pyuploadcare==6.0.0
  • Django==5.1.2
  • Firefox 133.0.3
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

1 participant