| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: File sharing violation ?? |
| N/A | posted March 1, 2001 8:31 AM Hi I have c:\user\doc.doc open in Word. My program then upload the file (while the file is still open in word). No error event is recorded, but the uploaded file only contains the path to the file. Is there a way to get around this ? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 1, 2001 9:09 AM I will record this as a bug. As a workaround, I suggest that you try to open the file using another means first, if you don't get an error, then begin the transfer. Thanks, Tony Priest Dart Tech Support |
| N/A | posted March 28, 2001 2:23 AM Hi Tony FYI It looks like your control needs Read Lock on files. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 28, 2001 11:10 AM We do it that way on purpose. Everything behaves as it would on a UNIX FTP server. Tony |
| N/A | posted April 6, 2001 8:52 AM You need readlock on files on the PC client ? Why ?? Other FTP Clients doesn´t need that. Brian |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 6, 2001 9:48 AM I'm sorry, but I don't understand what you are asking. Tony Priest Dart Tech Support |
| N/A | posted April 15, 2001 9:09 AM Hi Tony First of all – Thanks for the great support your giving. I haven’t tested the new release yet, but I read that you put an error code on it, that’s great, but I still hope that you would reconsider your choice. Here is a simple VB example, which will hopefully explain, what I’m saying. Private Sub Command1_Click() 'We lock a file for read lock 'This is off cause only for test purpose 'IRL another program is using the file 'e.g. Word Open "C:\1.doc" For Input Lock Read As #1 'Login at the FTP server Ftp1.Login "ftp.mycompany.com", "user", "pass", "" 'Change the directory to a directory with upload 'permission Ftp1.Directory = "Upload/" 'Store the file the on the FTP server 'Note the local file on the client, has 'a lock read on it Ftp1.Store "1.doc", "C:\1.doc" 'Logout from the FTP server Ftp1.Logout 'Release the Lock read on the local file 'again Close #1 'If you take a look at the file stored on the 'FTP server, you will see that the file stored 'only contains the path to the local file '(in this case "C:\1.doc") 'and not the actual content of the file 'A normal FTP Client Program will ignore the 'read lock and just upload the file 'You could off cause ague, if this is 'right or wrong 'that is your decision, but in my opinion this 'is the right way, because all other program do 'so and therefore you expect the same in this 'case. 'It would be okay to have a way of ignoring this, 'then the user could make a choice. 'If the file where store on a network drive 'instead of the local C-drive, it would not be 'easy to find out, who is holding the file. End Sub Best regards. Brian Noermark |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 16, 2001 9:18 AM The latest release solves this. When I run the code you posted, I get a file I/O error on the Regards, Tony Priest Dart Tech Support locked file. |
| N/A | posted April 27, 2001 6:37 AM Hi Tony It looks like you forgot this feature in 1.5.0.3 of Dartftp.dll Futhermore I think you forgot to implement the Error code on MPut Best Regards Brian Noermark |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 27, 2001 9:28 AM We're trying to accomodate everyone on this. The first change we made messed up something else. These problems are the result of trying to allow you to use the data param as either a file or string data. It looks like we are going to have to reconsider some things. I will work with development to resolve this as quickly as possible. If I were you I would work under the assumption that this is not going to be resolved any time soon and do some checking before you make the call to store. As far as MPut goes, it ignores errors and reports the files that did not get transfered at the end of the operation. Regards, Tony Priest Dart Tech Support |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|