Skip to content

Conversation

@Mte90
Copy link

@Mte90 Mte90 commented Sep 3, 2025

I am using django-file-form because I need an ajax upload but this js code generate an error in the browser as the HTML is different.

I am using django-file-form because I need an ajax upload but this js code generate an error in the browser as the HTML is different.
@Mte90
Copy link
Author

Mte90 commented Sep 22, 2025

I got the same issue with a custom widget that uploads video in the admin to the same line.

@Mte90
Copy link
Author

Mte90 commented Sep 22, 2025

To help test it, this happens with custom widget that don't have a placeholder above so it generates an error in js that block everything in the page itself.

@Mte90
Copy link
Author

Mte90 commented Oct 9, 2025

why it was closed?

@Mte90
Copy link
Author

Mte90 commented Oct 9, 2025

I have a widget with this HTML:

<div class="bg-white flex flex-none items-center leading-none self-stretch dark:bg-base-900">
    <input type="file" id="{{ widget.attrs.id }}" accept="video/*" class="border border-base-200 bg-white font-medium min-w-20 placeholder-base-400 rounded-default shadow-xs text-font-default-light text-sm focus:outline-2 focus:-outline-offset-2 focus:outline-primary-600 group-[.errors]:border-red-600 focus:group-[.errors]:outline-red-600 dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark dark:group-[.errors]:border-red-500 dark:focus:group-[.errors]:outline-red-500 dark:scheme-dark group-[.primary]:border-transparent disabled:!bg-base-50 dark:disabled:!bg-base-800 px-3 py-2 w-full max-w-2xl " />
</div>

Without that fix I am not able to use it

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

Successfully merging this pull request may close these issues.

2 participants