From e06e53e28527a7f90f7e22117174f6376bf6eaf1 Mon Sep 17 00:00:00 2001 From: Greg Molnar Date: Sat, 1 Dec 2018 09:44:28 +0100 Subject: [PATCH] fix example code syntax [ci skip] --- guides/source/active_storage_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index d5387219f5..65d4e2934f 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -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