您好,欢迎访问一九零五行业门户网

php 使用dropzonejs拖拽文件上传,如何将处理结果回显到当前页的textarea中?

修改了下dropzonejs的demo上传页面:(原地址:http://www.dropzonejs.com/exa...)加了个textarea,想实现文件上传处理完成后将处理结果回显到textarea内,请问该如何处理?
以下是index.php文件内容:
dropzone simple example this is the most minimal example of dropzone. the upload in this example doesn't work, because there is no actual server to handle the file upload.


以下是upload_file.php文件内容:
0) { echo error: . $_files[file][error] .
; } else { echo upload: . $_files[file][name] .
; echo type: . $_files[file][type] .
; echo size: . ($_files[file][size] / 1024) . kb
; echo stored in: . $_files[file][tmp_name]; $content = file_get_contents($_files[file][tmp_name]); echo $content; }?>

回复内容: 修改了下dropzonejs的demo上传页面:(原地址:http://www.dropzonejs.com/exa...)加了个textarea,想实现文件上传处理完成后将处理结果回显到textarea内,请问该如何处理?
以下是index.php文件内容:
dropzone simple example this is the most minimal example of dropzone. the upload in this example doesn't work, because there is no actual server to handle the file upload.


以下是upload_file.php文件内容:
0) { echo error: . $_files[file][error] .
; } else { echo upload: . $_files[file][name] .
; echo type: . $_files[file][type] .
; echo size: . ($_files[file][size] / 1024) . kb
; echo stored in: . $_files[file][tmp_name]; $content = file_get_contents($_files[file][tmp_name]); echo $content; }?>

可以通过ajax获取上传后的图片地址,然后显示
其它类似信息

推荐信息