I want to make an image upload API
Example:http://mysite.com/api.php?url=http://test.com/1.jpg
How to write a script can get the image URL from the URL?
Also check.the extension of the image
Then upload to my site and redirect to the image.
Thanks.
I want to make an image upload API Example:http://mysite.com/api.php?url=http://test.com/1.jpg How to write a script
Share
Have api.php run a cURL command on your server to get the URL of the file submitted to your API then download the file where you want. Have it then return the location of the image to your script for final processing to include renaming and any database storage you want to accomplish.