Dropzone doesn't accept file

Wappler Version : 6.8.0
Operating System : mac intel
Server Model:
Database Type:
Hosting Type:

Expected behavior

Selecting a file or dropping onto a DZ component should load the file

Actual behavior

Error is generated

dmxDropzone.js:7 Uncaught TypeError: Cannot read properties of undefined (reading 'input1[]')
    at s._addFile (dmxDropzone.js:7:4807)
    at s._addFiles (dmxDropzone.js:7:4540)
    at s._changeHandler (dmxDropzone.js:7:8233)

How to reproduce

<div class="container">
	<div class="row">
		<div class="col">
			<form id="form1">
				<div class="form-group mb-3">
					<label for="input1" class="form-label">Images upload</label>
					<input type="file" class="form-control" multiple="true" id="input1" name="input1[]" aria-describedby="input1_help" is="dmx-dropzone">
					<small id="input1_help" class="form-text text-muted">Select here your images for upload.</small>
				</div>
			</form>
		</div>
	</div>
</div>
/*!
 App Connect Dropzone
 Version: 2.0.5
 (c) 2024 Wappler.io
 @build 2024-07-04 14:13:42
 */

Hello Ken! I've noticed when form doesn't have a server action defined it throws some errors, can you check if it's the same case?

2 Likes

Try converting your form to server-connect-form?

2 Likes

I knew it would have to be something stupid on my part! Had not yet switched it to server connect form.

Thanks guys.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.