Uploading files code please

  Yoda Knight 14:56 06 May 2005
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 2005

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 2005

Thanx LeadingMNMs !

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

Elsewhere on IDG sites

OnePlus 5 review

Alice Saey's mesmerising animation for Dutch singer Mark Lotterman

iPad Pro 10.5in (2017) review

Comment booster votre iPhone ?