:: Forum >>

upload button

hello,

i would like my visitors to upload their photographs to my server.

i.e; http://www.avweb.com/potw-content/upload.html

how can i implement a system like this?

thnx
ashley
Thursday, August 25, 2005
On the client (AW is a client side framework), you can do this:

fileToUpload = new Active.HTML.INPUT;
fileToUpload.setAttribute("type", "file");
fileToUpload.setId("fileUploadID");
document.write(fileToUpload);


What you do with the data on the server is entirely dependant on what language you are using to create the web page. Remember that the above code must be placed in a FORM and then submitted to the server in order for you to get the data.
Jim Hunter
Thursday, August 25, 2005

This topic is archived.


Back to support forum

Forum search