Geoff Berrow wrote:
I have an input box for uploading image files
Although probably much improved, browser support for file uploads
is (still?) not universal. So consider offering users alternative
methods to transfer the data.
How do I upload pics from a URL?
RFC2388 sec. 5.7 outlines one possible way of referencing data at
an URL:
| In some scenarios, the user operating the client software might
| want to specify a URL for remote data rather than a local file.
| In this case, is there a way to allow the browser to send to the
| client a pointer to the external data rather than the entire
| contents? This capability could be implemented, for example, by
| having the client send to the server data of type
| "message/external-body" with "access-type" set to, say, "uri",
| and the URL of the remote data in the body of the message.
http://www.ietf.org/rfc/rfc2388.txt
But current browser support is unsurprisingly nonexistent, to my
knowledge. Does anyone know a browser that implements this?
The intention of the HTML specification is that users are able to
choose a file from their local filesystem. Browsers usually offer
the user the option of browsing their filesystem to pick out a
file, but I can't see any reason why a user cannot enter a full
local pathname directly, such as "C:\temp\image.png" [1].
[1] I was going to type ".jpg", but you've seen this, right? ;-)
http://siliconvalley.internet.com/ne...le.php/1429861
--
Jock