它是一个wordpress+jQuery 问题无法在stackoverflow上发布,因为我相信它也涉及wordpress知识。
What I am trying to achieve:我将wordpress async media uploader附加到“add post”页的metabox上,这样用户只需将大量图像拖放到uploader中即可上载,而无需每次插入一次(请参见图片)。

我正在将附件ID保存在帖子元上,以便用户可以将一个图像附加到多个帖子。
Question: 当上载者将上载请求发送到async-upload.php
它发回一个html响应,其中包含整个表单,用于添加附件的标题、标题和描述。第一个回应是:
<input type=\'hidden\' id=\'type-of-106\' value=\'image\' />
您可以看到完整的响应
here.
我的问题是how to I get the attachment id from that html response? 我猜我必须倾听来自async-upload.php
然后查看响应。