william44isme
william44isme

Reputation: 877

HTML Upload to certain directory in website

I have some code for an HTML upload form:

<form name="Upload FILE" action="mailto:emailaddresshere" method="post">
    <input type="file" name="uploadField" />
</form>

The above form uploads a file and sends it to a set email address. Is it possible to instead make it upload a file, and place it on the web server at a certain directory? Preferably pure HTML, no PHP if possible!

Thanks!

Upvotes: 0

Views: 83

Answers (1)

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114347

You cannot do this without a server-side language. HTML is client-side and has nothing to do with servers.

When a request is made to a server, something needs to be there to figure out what to do. That's where PHP comes in (or any other server-side language).

Upvotes: 2

Related Questions