Just to tell what I was told to do and my doubts about that :
In this one opinion I should better (i'm talking about the client side) check if there is something new to download on the ftp server, then get the size of the file to download, wait a bit of time say 4-5 seconds and check the file size again, if it is the same it would mean that the file was completely uploaded and I can proceed to download it , on the contrary i should have to wait till its size does not change.... In my opinion the first solution is the better ( i mean to rename the file to its final name just after it is completely upload)
What do you think ?
>Hi all,
>I want to know which is the best way to proceed to an upload on a ftp server :)
>What i want to avoid is the evenutality that a client start to download a file before it was completely uploaded by the server.
>
>Say i have the myfile.ext to be uploaded on the ftp by a server and that i have a client which downloaded it if it is available
>Actually I upload the file calling it myfile.ext.tmp and as soon i complete the upload i reneme it in myfile.ext
>Is it correct? someone told me it took a loto of time to the ftp server and it is not safe anyway
>
>Thank you
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only