This article is an example of a PHP upload image to obtain the path and to the form of the method of assigning values. Share to everyone for your reference, specific as follows:
1. Call Method Example:
Large Map Path:
Small chart Path:
2. uppic.php
Note: Different text boxes need to define IDs, iframe url:uppic.php?id= text
http://blog.csdn.net/lmaohuanl/article/details/6792057
"-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">
"http://www.w3.org/1999/xhtml" >
"extjs/resources/css/ext-all.css" rel="stylesheet" type="Text/css"/>
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Web;
Using System.Web.UI;
Using System.Web.UI.WebControl
It is best to use the Bootstrap fileinput. js File Upload Component and the bootstrap Upload Component.
This article describes how to use bootstrap fileinput. js (the best File Upload Component) to display and
addition to processing the image of the user, we can also be used to build photo albums processing operations, the specific interface is as follows.
The initialization code for this section looks like this:
Initializes the Fileinput control (first initialized)
$ (' #file-portrait '). Fileinput ({
language: ' en ',//Set Language
uploadurl: "/ Fileupload/upload ",//uploaded
uploadUrl: "/FileUpload/Upload", // The uploaded URL allowedFileExtensions: ['jpg', 'png ', 'gif'], // The suffix of the received file, maxFileCount: 100, enctype: 'multipart/form-data', showUpload: true, // whether to display the upload button showCaption: false, // whether to display the title browseClass: "btn-primary", // button style previewFileIcon: "
The
formvalidate ("Ffadd", function (form) {$ ("#add"). Modal ("Hide");//Construction parameters are sent to the background var postdata = $ ("#ffAdd"). Serializearray (); $.post (URL, postdata, function (JSON) {var data = $.parsejson (JSON); Success) {//Add image upload processing initportrait (data. DATA1);//update $ (' #file-portrait ') with the written ID. Filei
. converts all
Okay, it's time to see the results ~~
4. Fine Uploader
Http://fineuploader.com/demos.html
Download from the official website is charged .. I downloaded one from github.
Download link
Download and decompress the package as follows:
Js and css, you can find them by searching in the folder, but there is an all. fineuploader-4.3.1.min.js that I copied from the official website with chrome review elements .. Tested and usable
Note that the Template in the intermediate code
If this
The BootStrap Fileinput plug-in and the Bootstrap table plug-in are combined to implement file upload, preview, and submit import Excel data operation steps, bootstrapfileinput
Bootstrap-fileinput Source: https://github.com/kartik-v/bootstrap-fileinput
Preface: The previous three articles introduced some common uses of the next bootstrap table and found that bloggers were fascinated by the flat style. The first two days to do an Excel import function, the front end uses the original input type= ' file ' This kind of label, the effect can't bear to look straight, so Bo Master is determined to find a good-looking upload component to replace it. Since
Foreword: The previous three articles introduced some common components of the next bootstrap, found that the blogger is a bit fascinated by this flat style. The first two days to do an Excel import function, the front-end use of the original input type= ' file ' This label, the effect can not bear to look straight, so the blogger determined to find a good-looking upload components to replace it. Since
: 'glyphicon glyphicon-delete', validating: 'glyphicon glyphicon-refresh'}, fields: {myimg: {validators: {notEmpty: {message: 'select a file upload '}, file: {extension: 'jpeg, jpg, png ', type: 'image/jpeg, image/png', maxSize: 1*1024*1024, message: 'The file must be in jpeg, jpg, and png format and must not exceed 1 MB '}}}}}). on ('click ','. addButtonPos ', f
'],//received file suffixShowupload:false,//whether to show the upload buttonshowcaption:false,//whether the caption is displayedBrowseclass: "Btn btn-primary",//button stylePreviewfileicon: "});}Inside the page code, we place a file upload control, as shown in the following code.So the initialization code for our scripting code is as follows:Initialize the Fileinput control (first initialization)Initfilei
First you need to import some JS and CSS files?
123456
"__PUBLIC__/CSS/bootstrap.css" rel="external nofollow" rel="stylesheet">"text/css" rel="stylesheet" href="__PUBLIC__/CSS/fileinput.css" rel="external nofollow" />//中文包,不需要可以不用导入
HTML code?
123
"multipart/form-data"> "file-1"name="file" type="file" multiple class="file" data-overwrite-initial="false"data-min-file-count="1"/>
JS Code?
ObjectiveKindeditor is a very useful rich text editor, it's simple to use I will no longer introduce. But kindeditor the picture processing is not ideal.There are two issues to be addressed in this blog post:
Kindeditor Extended Paste Image feature
Kindeditor Modify image upload path and upload
Ajax asynchronous Upload Based on the bootstrap upload plug-in fileinput (supports multi-File Upload preview and drag/drop), fileinputajax
First, you need to import some js and css files.
Html code
Js Code
$ ("# File-1 "). fileinput ({uploadUrl: '', // you must set a path to enter the php code section allowedFileExte
This article mainly solves the problem of file upload in. NET Core development environment: Ubuntu+vscode. This article introduces you to the very detailed, interested friends to see together
The previous article introduced to you the MVC File upload support batch upload drag and preview file content check function
This article mainly solves the problem of file
, an uploadResult structure is required to return the json object to the foreground. This structure must contain the error field, which is used to return error data to the foreground, for details, see the official documentation-Official Website address
Attach a final uploaded image that is successfully saved to the local device:
The above is a small series for you to introduce.. net core file upload/suppor
>Div>Pre-style:Div>Pre>Ulgt;Ligt;.../ligt;Ligt;.../ligt;Ligt;.../ligt;/ulgt;Pre>Div>KBD Style:Div>Please enterKBD>CTRL + CKBD>To copy the code and then use theKBD>CTRL + VKBD>To paste the codeDiv>Here is the Code task section -P>Use ctrl+x to copy the code, and then use Ctrl+shift+v to paste the copied code where you want it.P>Body>HTML>Two. FormsBootstrap provides different class names for different style styles in the table, mainly including:? . Table: Base table? . table-striped: Zebra crossi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.