我知道如何在djnago中多文件上传.我用:
<form enctype="multipart/form-data" action="" method="post">
{% csrf_token %}
<p>Press control to upload more than image at same time</p>
<input type="file" name="myfiles" multiple>
<input type="submit" name="upload" value="Upload">
</form>
Run Code Online (Sandbox Code Playgroud)
但我想要的是单个文件上传,但允许用户点击"+"按钮并自动创建新的文件上传,允许用户上传多个文件.喜欢在hotmail中附加文件.
我在画布上绘制了多个图像,但我希望用户能够定义图像的重叠。换句话说,用户选择出现在前面的图像和出现在后面的图像。我怎么能做到这一点?