Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uploading an ftp site
Message
From
23/08/2008 02:14:53
 
 
To
22/08/2008 11:32:13
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01341138
Message ID:
01341296
Views:
15
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
Map
View

Click here to load this message in the networking platform