简体   繁体   中英

Upload an image using a URL in Codeigniter

我通过教程在Codeigniter中使用上传库上传图像,但我想知道:是否可以使用Codeigniter中的URL上传图像?

Yes, it's possible. See the answer on this question: Saving image from PHP URL .
If you're going to go the cURL route, see the CodeIgniter wiki entry: http://codeigniter.com/wiki/Curl_library/

If I understand your question clearly;

I think Upload a file using URL isn't a properties of Codeigniter or any other technologies. It's about operating system.

For example, you have a upload system with generated by PHP and Codeigniter. When you click Browse button, you can select an image in your computer or you can write an image link hosted on the internet. When you insert an image link, operating system generate a temporary path source (with your image) in your computer. In Windows, this could be C:/Temp folder. Then you can upload your image which you insert its' link.

File Uploading Class

Note: My english is off. Sorry for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM