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: issue #73 #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: issue #73 #112

wants to merge 1 commit into from

Conversation

mbarde
Copy link
Contributor

@mbarde mbarde commented Aug 5, 2024

Issue preventing form submission when using drag-and-drop on a required attachment field as described here: #111

*/
let inputEl = document.getElementById(`field-${id}`);
const myFile = new File([], file.name, {
type: 'text/plain',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as i understand, you are forcing the file mime_type. What appens if i upload a jpg, or png, or pdf or xls file for example? could you get mime type from file var?

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