Jump to content
Sign in to follow this  
nfaustin

_FTP_FilePut return 0 when uploading 0 byte file

Recommended Posts

nfaustin

Hi All,

I have made a tool to upload a files using FTPEx.au3 UDF.

And I also set a event logs to monitor which file not successfully uploaded during run time.

Then here is the problem.

The function _FTP_FilePut(...) return 0 when uploading a Zero(0)size file but

when I browse at the server folder, it actually successfully upload the said file.

My script is working good on none zero(0) size file.

I use AutoIt beta ver 3.3.1.1

Is this a Bug or function as designed?

Edited by nfaustin

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
Yashied
nfaustin

Maybe? But I already tried all possibilities but fails.

Below is my settings.

I use FileZilla Server version 0.9.32 beta

with user permission enabled:

Files:

- Write

- Append

Directories:

- List

- Subdirs

Also tried set all permission enabled but still problem exist.

Here is the Server Logs and it looks okay:

(000025) 8/13/2009 21:46:08 PM - reliability (10.194.29.28)> STOR /TEXT_FILES/asdfsdf.txt

(000025) 8/13/2009 21:46:08 PM - reliability (10.194.29.28)> 150 Opening data channel for file transfer.

(000025) 8/13/2009 21:46:08 PM - reliability (10.194.29.28)> 226 Transfer OK

(000025) 8/13/2009 21:46:09 PM - reliability (10.194.29.28)> disconnected.

I tried upload it using FileZilla Client and it upload okay.


[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
Yashied
nfaustin

Hi Yashied,

Sorry for the confusion. My mistake.

It is not the _FTP_FilePut function but it is _FTP_ProgressUpload that return 0.

I think this is function as designed since the function read first the size of the file before it upload.

And sometimes it hang with Progress bar still at 0 position.

BTW,

I read your FTP tool in this link: http://www.autoitscript.com/forum/index.php?showtopic=93916

Do you have any idea how to overwrite a file already exist on Server folder?

Meaning, when uploading the file that already exist on server folder it will overwrite it.

This is my first problem encountered in _FTP_FilePut function that return zero(0)

when uploading a duplicate file to server(not uploading zero size file).

Again,

Sorry for confusion.

Edited by nfaustin

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.