我有这个上传图片的项目,我用Uppy它。这是我的代码:
...
<div id="drag-drop-area" name="fotografije[]"></div>
<script src="https://transloadit.edgly.net/releases/uppy/v1.6.0/uppy.min.js"></script>
<script>
var uppy = Uppy.Core()
.use(Uppy.Dashboard, {
inline: true,
target: '#drag-drop-area'
})
.use(Uppy.Tus, {endpoint: 'https://master.tus.io/files/'}) //you can put upload URL here, where you want to upload images
uppy.on('complete', (result) => {
console.log('Upload complete! We’ve uploaded these files:', result.successful)
})
</script>
...
我试过name="fotografije[]"indiv但当然没有帮助。我所需要的只是命名这个输入,以便我的图像可以上传到服务器。我怎样才能做到这一点Uppy?
繁星coding
慕的地8271018
紫衣仙女