Skip to content
Advertisement

FTP upload via PHP form

I want to upload a file via FTP upload in a form.

JavaScript

Here is the PHP file:

JavaScript

The FTP connection connects successfully but the file is nowhere.

Can anybody help me?

Thanks!

Advertisement

Answer

Because you have <input name="uploadedfile" type="file" />:

JavaScript

Because you need the filename of the temporary copy stored by PHP, which exists on the server:

JavaScript

Refer to the PHP documentation for more information about $_FILES.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement