Uploading files code please

  Yoda Knight 14:56 06 May 05
Locked

Can anyone tell me the code I would need to allow users to upload a file via my website please ? Similar to the Job Sites where you upload your CV in Word format, although I want to be able to accept any format. I run the web site off my home pc. Thanx in advance !

  LeadingMNMs 17:20 06 May 05

What sort of scripts do you have installed ? PHP ? Perl ?

All you need on the page is a simple form with an <input type="file" name="file" />. Also in the form tag you need the 'enctype="multipart/form-data" ' attribute.

When the form is submitted, the file is automatically uploaded and stored somewhere on the server. The script then copies the file to the desired location (need to ensure permisssions will let you write to the directory).

  Yoda Knight 19:40 06 May 05

Thanx LeadingMNMs !

This thread is now locked and can not be replied to.

Qualcomm Snapdragon 835 benchmarks: Antutu, Geekbench 4, GFXBench and PCMark results

1995-2015: How technology has changed the world in 20 years

This animated short film tells a moving story of domestic violence for Refuge

New iPad 2017 preview: Apple's affordable but underspecced new iPad may appeal to the education…