0

如何使用引导文件上传的“选项”?

选项文档:

Name: uploadtype
type: string    
Description: Choose 'file' or 'image'. If omitted, the type is automatically determined based on the presence of a .thumbnail element.

Name: name
type: string
Description: Use this option instead of setting the name attribute on the <input> element to prevent it from being part of the post data when not changed.

例子?

4

1 回答 1

1

我想你正在使用 Jasny Bootstrap。

$('.fileupload').fileupload({'uploadtype':'image', 'name':'yourFieldName'});
于 2013-10-08T02:03:27.600 回答