Commit Graph
3 Commits
Author SHA1 Message Date
Chip Wasson 03b72c9198 Catch When cURL can't connect to webserver
If a domain is invalid or a web server is down, cURL will return false
and not have a status code. We need to catch it and distinguish the
difference between page not found and cannot connect for the user.
2016-08-29 21:52:28 -06:00
Chip Wasson 6c1aaeae2a Chrome Won't Infer File Extension
Add a file extension since the Chrome version I tested didn’t infer the
file extension.
2016-08-29 11:22:36 -06:00
Chip Wasson 745b9cc692 Add Content-Disposition to make saving images cleaner
When a user tries to save a file from the browser, make the filename
the url they entered so they don’t have to type it again.
2016-08-29 11:08:12 -06:00