Modified the next Dropzonejs of the demo upload page: (Original address: Http://www.dropzonejs.com/exa ... Add a textarea, want to implement the file upload processing completed after the processing results back to the textarea, how to deal with it?
The following is the contents of the index.php file:
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.
The following is the contents of the upload_file.php file:
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; }?>
Reply content:
Modified the next Dropzonejs of the demo upload page: (Original address: Http://www.dropzonejs.com/exa ... Add a textarea, want to implement the file upload processing completed after the processing results back to the textarea, how to deal with it?
The following is the contents of the index.php file:
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.
The following is the contents of the upload_file.php file:
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; }?>
The uploaded image address can be obtained via Ajax and then displayed