Problem with clicking on the link to download

WBOY
Release: 2016-09-01 00:20:13
Original
1356 people have browsed it

The backend is written in php.

<code><a href="../CollectionjobAgent
/CollectionJobDashboard/doDownload/
./uploads/collectionjob/0_21111.txt"></a></code>
Copy after login
Copy after login

The interface in the controller is "../CollectionjobAgent/CollectionJobDashboard/doDownload",
Now the backend hopes to get the string ./uploads/collectionjob/0_21111.txt, but it can only read it because of '/' After taking uploads, the collectionjob/0_21111.txt behind is gone. I would like to ask if there is a way to solve this problem.

Reply content:

The backend is written in php.

<code><a href="../CollectionjobAgent
/CollectionJobDashboard/doDownload/
./uploads/collectionjob/0_21111.txt"></a></code>
Copy after login
Copy after login

The interface in the controller is "../CollectionjobAgent/CollectionJobDashboard/doDownload",
Now the backend hopes to get the string ./uploads/collectionjob/0_21111.txt, but it can only read it because of '/' After taking uploads, the collectionjob/0_21111.txt behind is gone. I would like to ask if there is a way to solve this problem.

Just use the query string method.

<code class="html"><a href="../CollectionjobAgent
/CollectionJobDashboard/doDownload?path=./uploads/collectionjob/0_21111.txt"></a></code>
Copy after login

But due to '/', only uploads can be read. Why?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!