What should I do if I have no idea how to upload new files?

Source: Internet
Author: User
Upload files without refreshing & nbsp; use php to create a function to insert images when posting as in most forums. After checking on the Internet, input & nbsp; type = 'file' & nbsp; is written in form. when form & nbsp; submit, the page is automatically updated, if you direct the target object to a hidden Upload without refreshing the object
Php is used to create a function that inserts images when posting as in most forums. I checked it online and wrote the input type = 'file' in

In form, the page is automatically updated when form submit is enabled. if you direct the target to a hidden iframe, you can skip text uploading.

. The file can be uploaded successfully, but the file storage path generated in the background cannot be synchronously updated to the current page. So

The corresponding path cannot be written in the editing box after the image is uploaded as in csdn.

I don't know how to solve this problem. I can't write it now. For help.
------ Solution --------------------
Write the corresponding path in the editing box?
It can only be written to input type = text or other controls, but cannot be written to input type = file.

Iframe must be named or have an id. the recipient's echo Image path
Used for retrieval
S = document.iframe.doc ument. body. innerHTML
Id is similar
------ Solution --------------------
In addition, there is no solution in IE to obtain the cursor position. It can only work in the webkit browser. I tested csdn.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.