我在symfony 4中使用OneUpUploaderBundle,以dropzonejs为开头。每个想法都起作用,文件上传成功。 但是如何在jquery回调中获取上传的文件名以另一种形式使用?
html中的模板:
<section>
<div id="dropzone" class="text-muted">
<form action="{{ oneup_uploader_endpoint('gallery') }}" class="dropzone dz-clickable bg-transparent border" id="demo-upload">
<div class="dz-message">Drop files here or click to upload.
<br> <span class="note small">(Selected files are <strong>instantly</strong> actually uploaded.)</span>
</div>
</form>
</div>
</section>