Set to [Overwrite if different size] but still overwrite all

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
FahadOnline
500 Command not understood
Posts: 3
Joined: 2009-06-25 12:58
First name: Fahad
Last name: Online

Set to [Overwrite if different size] but still overwrite all

#1 Post by FahadOnline » 2009-06-25 13:39

I'm really suffering from this problem and wish somebody knows a work around.

I'm trying to download only updated and new files from remote server to local and I want to use the size filter, if it's different then transfer. But when I do that by changing the default file exist action to "Overwrite if different size" FileZilla still downloads all files like all of them have different size than local.

I've read in some web pages that this happens when the local is Windows based and the remote is UNIX based ... the file size get changed because the header information of each one get converted which cause the size of the same file to be different.

When I checked that by myself I fount it's true, a file with the size of 522 KB shows 509 KB on the remote server.

Now does anyone knows how to overcome this issue ? I was searching in google and in this forum but couldn't find an answer.

Thank You in advance

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Set to [Overwrite if different size] but still overwrite all

#2 Post by boco » 2009-06-25 17:26

Read Data Type to find out why the file size changes. I bet all files are transferred as ASCII?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Set to [Overwrite if different size] but still overwrite all

#3 Post by botg » 2009-06-25 17:34


FahadOnline
500 Command not understood
Posts: 3
Joined: 2009-06-25 12:58
First name: Fahad
Last name: Online

Re: Set to [Overwrite if different size] but still overwrite all

#4 Post by FahadOnline » 2009-06-25 21:29

I read that page and the article tells the same ... specially the last line "If you upload a text file with 200 lines and a total size of 5768 bytes, it will have a size of 5568 bytes on the server. " <<<< I know this already so when I try to download only files with different size than local it downloads all of them ... because they are smaller on the server :? . Do I need to use a Linux distro to eliminate this ? :roll:

I'm using the latest version of FileZilla and data type set to Auto as I'm downloading combination of files.

Thank You

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Set to [Overwrite if different size] but still overwrite all

#5 Post by botg » 2009-06-25 22:41

You'd have to transfer them as binary files if you want to rely on filesize differences for the overwrite action.

FahadOnline
500 Command not understood
Posts: 3
Joined: 2009-06-25 12:58
First name: Fahad
Last name: Online

Re: Set to [Overwrite if different size] but still overwrite all

#6 Post by FahadOnline » 2009-06-25 22:58

are you sure it's not going to damage my text files like php html js cgi ...etc ?

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Set to [Overwrite if different size] but still overwrite all

#7 Post by botg » 2009-06-26 10:33

Binary transfers them as-is, however not all programs can cope with foreign line ending styles if you transfer them between different platforms.

Niph
504 Command not implemented
Posts: 8
Joined: 2010-03-20 02:47
First name: niph
Last name: deni

Re: Set to [Overwrite if different size] but still overwrite all

#8 Post by Niph » 2010-03-20 02:59

i have also a question on that...

on xp-pc and on server the file size is different on too much files
but i know they are the same

now i did read this data type thing and also on the forum and i allready know that this seems to be normal

what is not clear to me is how i can stop this deffect?

as i got it, this is a ascii text file problem (correct me if i am wrong)
shall i safe now all files as utf-8 and upload them as binary?
will this fix the problem? and if so will this not corrupt my files?
i mean will this CRLF problem be solved with utf-8?
are utf-8 files on every system the same?
so there should be the same CRLF on unix and windows... is this so?
i have php files and html and htacces some txt files and so on
i can safe them all as utf-8 and upload them as binary
but will this work and solve the problem?

please explain it to me with some simple words ;)
thanks in advance :D

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Set to [Overwrite if different size] but still overwrite all

#9 Post by botg » 2010-03-20 07:09

UTF-8 is just a superset of ASCII, so it has both CR and LF. Nothing gained in respect to the data type issue.

Niph
504 Command not implemented
Posts: 8
Joined: 2010-03-20 02:47
First name: niph
Last name: deni

Re: Set to [Overwrite if different size] but still overwrite all

#10 Post by Niph » 2010-03-20 19:21

sorry my english is not so good...

so how can i gain something

i just have the following problem...
i have a site with html, php, js, css, htaccess and also gif, jpg, png files on my pc
i upload it on a server
now all files are working and the same
but the file size is different on the server
the files are marked red in filezilla
is there a way to keep just date and filesize on pc and server the same without corrupting the files?

i use a http://www.byethost.com/ server and windows xp on pc and the acctual filezilla client
i also set the upload method to automaic utf-8 if supported
is there a trick to solve this problem?

thank in advance

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Set to [Overwrite if different size] but still overwrite all

#11 Post by boco » 2010-03-21 00:42

All has been said before: Upload as Binary if you don't like the file size changing (only the line endings actually change, the contents are the same, and they are NOT corrupted). If the Binary transferred files work on the sever, depends on the support for foreign line-ending-styles of the webserver software.

And once again, the Charset setting (UTF-8) has nothing to do with this! The setting is in Settings... - Transfers - File types - Default transfer type
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Niph
504 Command not implemented
Posts: 8
Joined: 2010-03-20 02:47
First name: niph
Last name: deni

Re: Set to [Overwrite if different size] but still overwrite all

#12 Post by Niph » 2010-03-21 19:32

ok ... i dont fully understand it.

i am sure that i can handle unix, mac and pc files,
all kind of line breaks
and all codepages or how it is called as utf-8, ascii and so on
in my editor.
i am not sure about what the server can handle or not.

so i upload now all files as they are
text files in text mode and let utf8 settings on automatic
then i will download all again in binary mode
so all should be 1:1 on server and local pc

the editor will be able to handle the files and will not change the file settings after editing
so all will be hopefully fine :D

thanks for the help... i think that i feel now a bit more secure about what i am going to do :D

Post Reply