Updated Transloader (version 1.1.3) pushed out to
Mozilla and uploaded onto
my website.
This version includes the requested "history" feature (it will appear on the context menu after you transload your first image) which allows you to re-copy a previously uploaded image's link back to the clipboard. For right now I've listed the history by the file name because the full URLs tended to be quite long... willing to entertain suggestions on this one though...
-----Nate
Edit: Viper, also having some difficulty transloading certain images... ex:
http://lh4.ggpht.com/abramsv/SBrALSdo3XI/AAAAAAAAP_4/tlZ5BgP9QI4/s640/2007-09-04 14-19-56.jpg (from funny pics thread)
PhyreFile 400's out (bad request). Obviously the transloader extension escape()s the entire URL passed by mozilla to make it safe for the query string, so that link would result in $_REQUEST['url'] = 'http://lh4.ggpht.com/abramsv/SBrALSdo3XI/AAAAAAAAP_4/tlZ5BgP9QI4/s640/2007-09-04%2014-19-56.jpg' on the PHP side of things... (PHP obviously automagically decodes query-string parameters)
Based on the phyrefile error though:
Warning: file_get_contents(
http://lh4.ggpht.com/abramsv/SBrALSdo3XI/AAAAAAAAP_4/tlZ5BgP9QI4/s640/2007-09-04 14-19-56.jpg) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400
Bad Request in /var/www/hosted/phyrefile.com/www/htdocs/transload.php on line 21
[...]
{"result":"failed","error":400}
It looks like $_REQUEST['url'] is being urldecoded() a second time, because re-encoding the % sign in the query string sent to the transload script
does allow phyrefile to grab it. Perhaps this was an inadvertent bug caused by changes made re: posts 52/54?
Also, you should probably do this as well before you dispatch the request with file_get_contents()
if( get_magic_quotes_gpc() == 1 ) $_REQUEST['url'] = stripslashes( $_REQUEST['url'] );