Does the php file support the url I entered when I upload it?
Source: Internet
Author: User
Can I enter a URL when uploading a php file? Uploading in php & lt; inputtype = & quot; file & quot; name = & quot; file & quot; id = & quot; file & quot;/& gt; this is used to upload pages. if I manually typed the website instead of browsing the guided file, how can I get the URL that I entered when I uploaded the php file?
Uploading in php This is used to upload pages,
How can I get the url I entered instead of browsing the guided file?
This $ _ FILES ["file"] ["name"] can only get the name of the file imported by browsing
Is there any global variable that can be manually input in the file text box?
------ Solution --------------------
The file type submits stream. if you want to obtain the submitted address, you can use js to get file. value before submission.
Then, it will be okay if you leave it in a hidden and submit it.
However, since the form content can be submitted, even if you do not select a file, the submission method is still form-data type, and the value cannot use request. form.
------ Solution --------------------
Not supported. the file content can only be selected; otherwise, security issues may occur.
When you press it, it will become blank.
------ Solution --------------------
That is not supported. We recommend that you create an input type = text to input a url to the user. if you upload a local image, you can use input type = file to process it.
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