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.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

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

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…