nfaustin Posted August 13, 2009 Posted August 13, 2009 (edited) 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 August 13, 2009 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]
Yashied Posted August 13, 2009 Posted August 13, 2009 I checked it. Works OK for me (returns 1). Maybe the server is to blame? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
nfaustin Posted August 13, 2009 Author Posted August 13, 2009 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]
Yashied Posted August 13, 2009 Posted August 13, 2009 Say what returns the @extended flag, or _WinAPI_GetLastErrorMessage() function? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
nfaustin Posted August 14, 2009 Author Posted August 14, 2009 (edited) 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 August 14, 2009 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now