3

I went through the tutorial to upload an image in Codeigniter with the Upload library, but I was wondering: Is it possible to upload an image using a URL in Codeigniter?

Wesley Murch
  • 98,378
  • 36
  • 187
  • 224
insomiac
  • 5,512
  • 7
  • 43
  • 73

2 Answers2

1

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/

Community
  • 1
  • 1
stealthyninja
  • 10,225
  • 11
  • 48
  • 58
1

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.

Soner Gönül
  • 94,086
  • 102
  • 195
  • 339