如何访问jQuery File Uploader的返回值 - 上传文件?

时间:2015-04-14 08:33:26

标签: javascript jquery json image

我可以使用以下哪个选项来返回上传JSON类值?

<!-- language: lang-js -->

    <script>
        $(document).ready(function() {
            $("#fileuploader").uploadFile({
                url: "Gallery/Upload", // Server URL which handles File uploads
                method: "POST", // Upload Form method type POST or GET.
                enctype: "multipart/form-data", // Upload Form enctype.
                formData: null, // An object that should be send with file upload. data: { key1: 'value1', key2: 'value2' }
                returnType: null,
                allowedTypes: "*", // List of comma separated file extensions: Default is "*". Example: "jpg,png,gif"
                fileName: "file", // Name of the file input field. Default is file
                formData: {},
            });
        });
    </script>

0 个答案:

没有答案