-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Uploading files with HTML form via “Uppy” #1625
Comments
I’d have to double check the docs but isn’t target on the form plugin supposed to be the css selector of the form? You point it to #upload now but the form does not have id=upload? What am I missing? |
Yes you are right. I've done a little typo, I've fixed it, but it still upload area does not appear. |
Any help? :) |
Sorry for the wait! The problem is that the Form plugin only handles metadata, it doesn't actually let you do any uploads on its own. The Form's uppy.use(Form, {
target: 'form'
}) Then you can add a source plugin like @uppy/file-input to show an input element: uppy.use(FileInput, {
target: '#upload'
}) You'll also need an uploader plugin like XHRUpload to actually send the files somewhere once they've been selected. uppy.use(XHRUpload, {
endpoint: '/url/to/upload/to'
}) There is some boilerplate involved with Uppy, because everything is configurable :) |
Please let us know if you need more help with this! |
Uppy, a great javascript file upload library but I was unable to upload images with HTML form.
Javascript Code:
HTML Code:
on JSFiddle demo
The upload area does not appear. What could be the reason?
Question on the Stackoverflow
The text was updated successfully, but these errors were encountered: