Solved

Upload multiple files from different computers concurrently into a single file on server windows server 2003.

Posted on 2011-09-03
5
235 Views
Last Modified: 2012-09-07
Hi,

I want to upload several files from different workstations to a single file in the server. These files might be concurrently uploaded, that is one workstation might be uploading a file at the same time with another. Of course these files will need to go into a single file in the server. I can use FTP or HTTP.

Regards
0
Comment
Question by:lxfdirs
5 Comments
 
LVL 19

Expert Comment

by:lamaslany
ID: 36477839
To confirm:  You are looking to merge concurrently uploading files of the same name together rather overwrite it?  If so this will not work.  I'd suggest that the file names be different and to have a scheduled/triggered service on the server to sequentially merge the files together.
0
 
LVL 25

Expert Comment

by:Tony Giangreco
ID: 36477863
I agree, you need to either create a seperate folder for each machine or set a unique prefix to the files on each Pc other wise all duplicte files will be over written. This could create a real mes.

I suggest rethinking your logic and come up with a new plan.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36478368
No that won't happen.  You have to use a program on the server to merge them After they are uploaded.
0
 
LVL 16

Accepted Solution

by:
AlexPace earned 500 total points
ID: 36489603
If you have fine control over the FTP client and the server supports resumable uploads you could trick the server into doing it but the clients would need to do the uploads sequentially in a sort of round-robin approach like shuffling a deck of cards.

Suppose 3 clients lets call them A, B, and C and they want to upload a file named foo.txt
All clients connect to the FTP server and request a directory listing every X seconds.
Client B can begin an upload only if a file named A.done is on the the remote folder.
Client C can begin an upload only if a file named B.done is on the remote folder.
Client A can begin an upload only if a file named C.done is on the remote folder.

So, when we are ready to start we create a signal file named C.done and it will be noticed by Client A which will upload 100 bytes of foo.txt then rename C.done to A.done.  At this point Client B will detect the A.done file and set the resume point for foo.txt at 100 and then upload another 100 bytes, rename A.done to B.done.  This will be noticed by Client C which will now have a turn.  If any client has less than 100 bytes they just do what they can and rename the file. If any client has zero bytes they create a file named X.empty.  The file is "done" when the server has A.empty and B.empty and C.empty.

So, after all this work you have an interleaved data file.

Instead of this, why don't you tell us what you are trying to achieve and perhaps we can suggest an alternative.
0
 

Author Comment

by:lxfdirs
ID: 36494861
Experts:

Appreciate all your responses. Let me analyze my approach and your suggestions a litte bit more and I will come back to you.

Regards
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ms Filer Server Migration toolkit issues 2 84
change home folder path 4 56
Event-ID 3001, 3011 - LoadPerf - Windows Server 2003 14 63
ticket bloat 3 54
So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question