在dropzonejs + OneUpUploaderBundle中返回上传的文件名

时间:2019-01-20 13:08:39

标签: symfony4 uploader oneupuploaderbundle

我在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>

0 个答案:

没有答案