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 Bala Chandar on 05/09/05 05:58

Hi,

On 5/9/05, Murray @ PlanetThoughtful <lists@planetthoughtful.org> wrote:
> 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.

Instead use the dynamic file names....

say you upload a file filename.jpg

when u upload it name it dynamiccaly by appending date and time before
the file name
like this

2005050501010-filename.jpg


>
> 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.
>
> I had hoped there was a way in which I could retrieve stats of the file
> being uploaded prior to beginning the upload, to compare against files in
> the target directory, so that the application can advise the user that the
> file already exists and to give them the option to cancel the upload.
>
> Another minor drawback is that it seems the Post upload method changes the
> file datetime to the datetime of the upload.
>
> So, can anyone confirm that there is no other way to upload files from a
> client machine using a form? (and assuming they don't have an ftp server at
> their end).
>
> Much warmth,
>
>
> Murray
>
>


--
bala> balachandar muruganantham
blog> lynx http://chandar.blogspot.com
web> http://www.chennaishopping.com

 

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

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