The value of the post parameter is a path, and the backslash is filtered out when it is uploaded to the backend. how can this problem be solved?
Source: Internet
Author: User
The value of the post parameter is a path. when it is uploaded to the backend, the backslash is filtered out. how can this problem be solved? Ask rt, the code is as follows $. post (& quot; http: // localhost/gl/index. php? The value of imgUrl = glc/modules/mod_glc_results/ass post parameter is a path. when it is uploaded to the backend, the backslash is filtered out. how can this problem be solved?
Ask rt. the code is as follows:
$. Post ("http: // localhost/gl/index. php? ImgUrl = glc/modules/mod_glc_results/assets/js/flashupload/saved/image/2012061402012-06-14-15-33-34_87618_thumb.jpg "). done (function (){});
$ _ Post ["imgUrl"] in backend php gets a string without a backslash: glcmodulesmod_glc_resultsassetsjsflashuploadsavedimage2012061402012-06-14-15-33-34_87618_thumb.jpg
Ask the elders what knowledge I lack to learn to solve this problem? (In addition, the method of replacing the backslash with special characters has been nearly tested and won't work)
------ Solution --------------------
Discussion
On the JS end, you Urlencode glc/modules/mod_glc_results/assets/js/flashupload/saved/image/2012061402012-06-14-15-33-34_87618_thumb.jpg; otherwise, it will be treated as pathinfo.
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.