【发布时间】:2011-03-15 05:31:35
【问题描述】:
我正在使用“plupload”插件。
我有这个输入表单:
<div id="flash_uploader" style="width: 610px; height: 330px;">You browser doesn't have Flash installed.</div><input type="text" name="categorie" id ="categorie" value="" /><input type="submit" value="send" />
我尝试使用“multipart_params”获取“categorie”的值,但这不起作用!
$("#flash_uploader").pluploadQueue({
// General settings
runtimes : 'flash',
url : '../scripts/plupload/examples/upload.php',
max_file_size : '700kb',
chunk_size : '1mb',
unique_names : false,
multi_selection : true,
multipart : true,
multipart_params : {categorie : $('#categorie').val()},
filters : [
{title : "Image files", extensions : "jpg,png"}
],
// Resize images on clientside if we can
resize : {width : 550, height : 550, quality : 94},
// Flash settings
flash_swf_url : '../scripts/plupload/js/plupload.flash.swf'
});
如何将 pluploadQueue 中的输入“类别”值发送到 ../scripts/plupload/examples/upload.php ?
感谢您的帮助...
【问题讨论】:
-
那么你的问题解决了吗?我面临同样的问题。干杯。
-
如果您想动态更改参数this post 会有所帮助。
-
使用 multipart_params! stackoverflow.com/questions/9535462/…