A feature similar to the release of WeChat Circle of friends!

Source: Internet
Author: User
is on the current page, first select Upload a photo, the page jumps to the Friend Circle Publishing page, and then submit.
My problem is that I am going to write a JS on the current page, select the photo after the jump, and then save the photo URL to the session, and then in the page after the jump to the session of the image URL to be submitted to the table single submission to the Add algorithm, But I take the photo address when the value of the file box is obtained results similar to "c:pake/xxxxx.jpg", so that the address does not seem to be used by the upload method of TP, there is no written to provide the next idea? Forgive me I do not understand the framework of the source code and the underlying logic, there is time I would like to see, but this project is also relatively urgent, I hope you can guide! Appreciate it!

There is a mobile phone with QQ browser seems to onchange method is not supported, there is no similar way to use it


Reply to discussion (solution)

Didn't the picture go up? I remember to pass the picture first and then get a id/url or something from that to access the picture.

Didn't the picture go up? I remember to pass the picture first and then get a id/url or something from that to access the picture.


Pass up, the key URL and ID pass the past how to use ah ... I used to write upload photos have been directly received form $_files, so I do not understand this

1. First use the normal upload image method, upload pictures, with $_files, upload, the picture path, write to the database, return ID
2. When submitting, only the ID is submitted
3. Obtain the picture path display from the database according to the submitted ID.

  • Related Article

    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.