Error 30021 while uploading file using ftp - WeOnlyDo Discussion board

Error 30021 while uploading file using ftp (General questions)

by shahsu, Tuesday, December 14, 2004, 12:07 (7283 days ago)

Please help !!!1

Re: Error 30021 while uploading file using ftp

by wodSupport, Tuesday, December 14, 2004, 13:06 (7283 days ago) @ shahsu

Shashu,

30021 = LocalPath should specify a file, and such file does not exist.

it say it all. Did you specify full (absolute) path when you set LocalPath property? Do you have enough permissions to open that file? Can you show your code snippet?

Re: Error 30021 while uploading file using ftp

by sandrine, Wednesday, December 15, 2004, 17:01 (7281 days ago) @ wodSupport

Hi,
I also have a problem with error 30021 because it raises a runtime error instead of the done event... It doesn't occur the same with error 30018 (this one is OK). I would like to detect when the file does not exist in the localpath. How may I check before uploading it ? I dont'find any command to do that.
Thanks.

Re: Error 30021 while uploading file using ftp

by wodSupport, Wednesday, December 15, 2004, 17:03 (7281 days ago) @ sandrine

Sandrine,

you can always catch the error in VB using 'on error...'.

Or, you can try to open this file by yourself (for reading). If it fails, you may have more info on why it happens. Make sure you close it before you pass it to wodSFTP.

Re: Error 30021 while uploading file using ftp

by sandrine, Wednesday, December 15, 2004, 17:53 (7281 days ago) @ wodSupport

The problem is that I first prepare a zip file with 500 files (and upload it with wodSFTP) and it takes a long time before appear in local directory. Although I can see it with VB, it seems that wodSFTP can not.
It's OK with on error but I would have preferred a SFTP done error to do it again.
Thank you.