Click to See Complete Forum and Search --> : File 'drop box' - can it be done?


desdub
04-18-2003, 06:30 PM
I want to have a page that contains a file drop box where people can drag and drop files which will then be emailed to somewhere when the user hits a send button.

Can anyone direct me to some code that will do this? I've had a bit of a look around in the usual places with no success.

Thanks

D.

DrDaMour
04-18-2003, 08:14 PM
as to the first part, the drag and drop thing. dragging and dropping is an operating system dependant thing in that context. You'll notice if you drag adn dorp a file on IE in Windows it loads teh file into IE. The only real file interaction is <input type="file">

as to the second part, javascript is somewhat limited to what it can do with email, of course there is the mailto: href, but that is limited, and certainly doesn't use files. What you've seen on forms uses a server side script. Now you don't have to write the server side script, but you have to access to one that does what you want.

desdub
04-18-2003, 09:10 PM
Thanks DrDaMour,

I was afraid you (or someone else) would say that.

D.