You are here: RE: [PHP] Any alternative to POST method FTP uploads from client computer? « PHP « IT news, forums, messages
RE: [PHP] Any alternative to POST method FTP uploads from client computer?

Posted by Jared Williams on 05/09/05 19:38

> Hi All,
>
>
>
> I need to implement the ability to ftp upload files from
> client machines via a form in a web application I'm developing.
>
>
>
> From reading the PHP help, all I can find to perform this is
> the POST method for handling file uploads
> (http://au2.php.net/manual/en/features.file-upload.php).
>
>
>
> From my perspective, while this seems to work, there are a
> couple of drawbacks, most important of which is that it seems
> you can only do comparisons of the uploaded file, against the
> potential that the file has already been uploaded, once the
> file has already been uploaded and is sitting in the server
> temp directory.
>
>
>
> This is a drawback to our application because the files can
> typically vary on a daily basis in size from 20mb thru to
> 400mb, and 400mb seems like a lot of bandwidth to consume to
> discover that the file already exists on our server.
>

Hmm, sounds like you just want to send something like a hash first
Like the SHA1 of the file.
So would need ActiveX/Java obect to perform the SHA1 of the file client side first.
Send that, if it hasn't been seen then send the whole file.

As for other methods...

You could try WebDAV and the PUT method. There is a PHP implementation of a WebDAV server in PEAR. Its not form based, but would
make it somewhat more easier to upload than using FTP atleast. I believe WinXP can attach directly to them, or use Novells' NetDrive
to map a drive letter to the WebDAV server.

Jared

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация