uploaded files in firefox
hello. i encountered a problem when opening a previously uploaded file (like this one) in firefox: somewhen on the way from server to client the three digits "" are inserted in the beginning of the file, which wouldn't happen in internet explorer. anyone got an idea about what's going wrong there?
isore
no?
xyll
Does it still happen if you rename the file to tunnel1.html?
isore
.htm, .html, .txt - all the same. it doesn't happen to older uploads though. tried to upload with ie but the problem still exists when downloading with ff.
tobi Verwaltung
if i create a new file (.txt or .html doesn't matter) and upload it to antville with firefox it looks the same after downloading it again.
however, the file you refer to as example in fact contains three bytes which might not be visible in a text editor but e.g. in a hex editor.
i am no expert here, only can assure that it's not antville and obviously not firefox either. could it be a file system issue on your local machine?
xyll
IE silently fixes the problem (on my machine). If you save the file with IE, the 3 bytes are gone, and don't appear after another round of uploading and downloading.
tobi Verwaltung
but after an upload with safari the three bytes are still there (which i think is correct, because the file should remain the same). did you really check this in a hex editor?
xyll
Nah, I checked with Ruby's built-in
getc
function, still have to find a usable hex editor for Windows. Shouldn't make a difference though. I agree the original file is corrupt, my initial guess was about mimetypes, but that doesn't seem to be the point.isore
thank you guys, you are right. seems i used notepad somewhen to make a small change and it added those three bytes. i didn't notice because firefox wouldn't display them when opening the local file i was working on. but thanks a lot for pointing that out to me, it finally made me replace notepad as a standard editor in my filemanager.