Re: Large/unreliable file uploading over HTTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 2008-09-08 11:47:34, schrieb Jason Pruim:
> Hey Todd,
> 
> This sounds exactly like what my day job needs... I just took over the  
> website, and currently they have it where people have to ftp the file  
> into their server to get large files, and with them being a print  
> shop... A couple gigs per job is not unheard of.
> 
> If there is anything that I can do to help get that finished up let me  
> know! :)

I am using a PHP5 Script which the $USER download and execute on her/his
machine...  It works under Linux/BSD/Windows  using  "php-cli".  But  my
tool is very specifc to my PostgreSQL.

My question is:  Where is the problem coding a script which:

    1)  get the md5sum of the original file
    2)  split the original file into chunks of e.g. 1 MByte
    3)  get the md5sums of all chunks
    4)  send the index file with all chunks and md5sums to the server
    5)  send request for chunkupload and $SERVER answer with
        a)  "yes, send it"
        b)  "no, I have it already send next one"
    6)  If all chunks are complete, Script on Server put all chunks
        together and check md5sum
    7)  $SERVER send ACK or NACK back.

If you use a session_cache or something like this, such uploads  can  be
done over several days with several interuptions...

It is realy easy to code...

Need only the SERVER side script (maybe with Webserver;  I  have  a  bad
experience with TCP connections from php5) and the CLIENT side script.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

<<attachment: signature.pgp>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux