mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix example code syntax [ci skip]
This commit is contained in:
parent
d8b86c236c
commit
e06e53e285
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ input.addEventListener('change', (event) => {
|
|||
input.value = null
|
||||
})
|
||||
|
||||
const uploadFile = (file) {
|
||||
const uploadFile = (file) => {
|
||||
// your form needs the file_field direct_upload: true, which
|
||||
// provides data-direct-upload-url
|
||||
const url = input.dataset.directUploadUrl
|
||||
|
|
Loading…
Reference in a new issue