1
0
Fork 0
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:
Greg Molnar 2018-12-01 09:44:28 +01:00
parent d8b86c236c
commit e06e53e285

View file

@ -635,7 +635,7 @@ input.addEventListener('change', (event) => {
input.value = null input.value = null
}) })
const uploadFile = (file) { const uploadFile = (file) => {
// your form needs the file_field direct_upload: true, which // your form needs the file_field direct_upload: true, which
// provides data-direct-upload-url // provides data-direct-upload-url
const url = input.dataset.directUploadUrl const url = input.dataset.directUploadUrl