---
title: 'Form Problem DropZone'
url: 'https://getgrav.org/forum/support/form-problem-dropzone-t1594'
markdown: 'https://getgrav.org/forum/support/form-problem-dropzone-t1594.md'
date: '2026-06-21'
description: "Hi everyone, I'm running into an issue when trying to use Form in my project. I'm trying to load the file from md with dropzone. When I run it in the browser,"
---

[Support](https://getgrav.org/forum/support)

#  Form Problem DropZone 

 [form](https://getgrav.org/forum/tag/form)

  Started by Bartek 1 year ago · 3 replies · 697 views    

 [1 year ago](https://getgrav.org/forum/support/form-problem-dropzone-t1594#post-40910 "Permalink") 

Hi everyone,

I'm running into an issue when trying to use Form in my project. I'm trying to load the file from md `with dropzone.`

When I run it in the browser, I get the following error:

```
Uncaught SyntaxError: Unexpected token '/'
```

The site was working fine before the update. I suspect it might be related to changes in how Grav handles assets or JavaScript modules.
Could anyone help me fix this or suggest a workaround?

Thanks in advance!

![dropzone.md|690x338](https://cdn.getgrav.org/forum/files/f0/f04b5bf29ac8f5d1378bb6ec087667fc23101d399c23063fe5a002366aedf984.png)

![dropzone|690x101](https://cdn.getgrav.org/forum/files/ca/ca1fb37f238c955dcfd9eaa05c4e2650e8013ee49b45e494cc71940171644e0a.png)

![dropzone 2|369x64](https://cdn.getgrav.org/forum/files/fa/faffc869687715acecc8895121f97d20df480446398dcc105f379e160d0f3117.png)

 [1 year ago](https://getgrav.org/forum/support/form-problem-dropzone-t1594#post-40911 "Permalink") 

@pawlikbartlomiej, For me, the information you've provided is a tad too little... Could you elaborate a bit more on:

- What are you trying to achieve?
- Are you talking about a form in frontend of backend (Admin)? 
    - Frontend: The Form plugin has its own File field that allows you to download a file into the folder of the page.
    - Backend: There already is a download option in the page editor to download a file.
- I have no idea what information the screenshot is showing (and please don't use screenshots...)
- Why are you using nodejs to create a Form page to download a file?
- Etc...

You might want to read /forum/general/the-art-of-asking-great-questions-t8554 to improve your question.

 [1 year ago](https://getgrav.org/forum/support/form-problem-dropzone-t1594#post-40912 "Permalink") 

Based on the name `sortable`, I assume it's not about the file field, but rather about drag'n'drop DOM manipulation

 [1 year ago](https://getgrav.org/forum/support/form-problem-dropzone-t1594#post-40913 "Permalink") 

Yes, exactly — it’s about the field where the user uploads files.
The problem is with **Dropzone initialization**.

On my local environment, everything works fine, but on production I get this error:

```
Uncaught SyntaxError: Unexpected token '/'

```

This all started happening after updating Grav to the new version; previously, updates didn’t cause any issues with this.

[Log in](https://getgrav.org/login?return=%2Fforum%2Fsupport%2Fform-problem-dropzone-t1594) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [retina images are shown in Admin (but not all of them)](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504)    [Support](https://getgrav.org/forum/support) · by Anna, 23 hours ago |  | 1 | 32 | [20 hours ago](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504 "by Anna") |
| [page.date != page.header.date, now my collection sorting is broken (bug? by design?)](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484)    [Support](https://getgrav.org/forum/support) · by Anna, 2 weeks ago |  | 1 | 231 | [2 weeks ago](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484 "by Anna") |
| [it's no possible sign in with email......](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462)    [Support](https://getgrav.org/forum/support) · by webmasterodp, 1 month ago |  | 4 | 362 | [1 month ago](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462 "by webmasterodp") |
| [Site stopped working overnight - 'not writeable' error](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445)    [Support](https://getgrav.org/forum/support) · by nwhitfield, 1 month ago |  | 2 | 335 | [1 month ago](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445 "by pamtbaau") |
| [MIgrating to 2.0](https://getgrav.org/forum/support/migrating-to-2-0-t9437)    [Support](https://getgrav.org/forum/support) · by stell, 1 month ago |  | 5 | 625 | [1 month ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437 "by stell") |
